嗨我敢在Android的发展inexpirienced在HorizontalScrollView滚动的速度,所以我需要你的帮助:)控制机器人
的问题
我希望用户能够看到图像,但一个列表,尽快为他们滚动我希望他们能够去下一个图像,而不是滑动太多,跳过图像
问题
那么有没有办法让滚动速度变慢或HorizontalScrollView不是我想要的那种视图,以实现我想要的东西?
我的代码
<HorizontalScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:id="@+id/scrollView">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/sample_0"
android:id="@+id/dog"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/sample_1"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/sample_2" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/sample_3"/>
</LinearLayout>
</HorizontalScrollView>
非常感谢你回答但似乎我要找的是压倒onScroll的东西( )方法d。如果我设法弄清楚,我会在这里发布答案:) – catchiecop