80,350
社区成员
发帖
与我相关
我的任务
分享
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/pointer" />
<ScrollView
android:id="@+id/scroller"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<View
android:background="@drawable/ruler"
android:layout_width="1000dp"
android:layout_height="40dp" />
</ScrollView>
</LinearLayout>
想要获取刻度的时候,需要根据scroller的scroll offset计算一下