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