1
A
回答
0
添加一些图像文件放入res /文件夹绘制并使用以下布局:
<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<ImageView
android:src="@drawable/pic1"
android:id="@+id/img1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<ImageView
android:src="@drawable/pic2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<ImageView
android:src="@drawable/pic3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<ImageView
android:src="@drawable/pic4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>
</HorizontalScrollView>
0
我相信这是可能的。滚动视图类中有一个设置位置
http://developer.android.com/reference/android/widget/ScrollView.html#smoothScrollBy(int,INT)
,可以帮助你的方法。我知道你可能想要改变速度,我正在看我是否看到了解决方案。我还没有试过我看到了这只是我自己的方法在传递
这也可能是有益的
scrollTo(INT X,int y)对
你也许可以在不同的线程计算,其中x应该是每隔30秒,然后调用scrollTo(int x,int y)并传入你想要的数字
相关问题
- 1. 水平滚动旋转木马
- 2. 水平滚动视图
- 3. android水平滚动视图
- 4. 水平滚动视图iOS
- 5. 水平滚动页面中的水平滚动视图
- 6. 在图像上的水平滚动视图中的旋转动画Obj-c
- 7. 水平连续滚动EditText
- 8. 在水平滚动视图中替代水平滚动视图在android
- 9. 滚动时旋转视图
- 10. 水平滚动视图绘制图
- 11. 水平滚动图像视图列表
- 12. 水平旋转图像onClick
- 13. 水平旋转图像
- 14. 水平旋转图像?
- 15. 滚动视图与web视图不滚动水平
- 16. 内部自定义视图水平滚动视图不滚动
- 17. Android水平滚动和水平翻转
- 18. swiperefreshlayout继续旋转
- 19. android:chipview上的水平滚动视图
- 20. Android/Java开发 - 水平滚动视图
- 21. ListView项中的水平滚动视图?
- 22. ViewPager内部的水平滚动视图
- 23. 网格视图中的水平滚动
- 24. 水平滚动的自定义视图
- 25. 设置水平滚动视图布局
- 26. 手机中的水平滚动视图
- 27. 水平滚动视图不工作
- 28. 列表视图与水平滚动
- 29. Android:水平画廊滚动视图?
- 30. 水平滚动用于在表视图
请再次阅读问题 –
哦,对不起,我犯了一个错误,我会尝试找到一个解决方案为你的问题 – 2012-12-18 12:02:18