-3
A
回答
2
它不垂直,其水平是
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
// Add your ImageButtons
</LinearLayout>
</HorizontalScrollView>
+0
如果我現在在這個LinearLayout中放置像ImageButton這樣的元素,它們將會垂直滾動嗎? –
+0
是的,試試吧。如果我的答案有效,那就接受它。 – Exigente05
+0
可悲的是它沒有:/ –
0
你必須滾動視圖設置爲
android:fillViewport="true"
下面是完整的代碼
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/myscrollView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
</ScrollView>
相關問題
- 1. 必需水平ScrollView Android
- 2. 水平ScrollView在android中的TextView?
- 3. ScrollView水平在UI編程Android
- 4. 在Android Studio中的水平ScrollView
- 5. Android垂直滾動ListView水平scrollView
- 6. Android的scrollView不能滾動水平
- 7. Scrollview不滾動完全在片段,Android
- 8. android兩個ScrollViews嵌套/小水平ScrollView垂直ScrollView
- 9. 如何水平滾動scrollview
- 10. 水平scrollView與對齊
- 11. scrollView不水平調整
- 12. 垂直水平RecyclerView ScrollView
- 13. Scrollview不工作在片段
- 14. 在Xamarin.Forms中水平滾動ScrollView
- 15. 如何在Android中水平滾動片段
- 16. ScrollView在水平和垂直滾動表在android中
- 17. 片段中的ScrollView
- 18. 片段淡出水平滑動
- 19. 水平佈局圖片和段落
- 20. 禁用片段中的水平滾動
- 21. 水平線段
- 22. 添加水平scrollView垂直滾動uicollectionView
- 23. ScrollView/NestedScrollView內的Recyclerview&Cardview(水平佈局)
- 24. UITableview中的水平和垂直scrollview ios
- 25. 水平ScrollView中的collectionView鬆散功能
- 26. Android中的水平滾動圖片庫
- 27. ScrollView不滾動片段
- 28. 水平圖片廊
- 29. android - 隱藏水平scrollview當textView被點擊
- 30. scrollView中的scrollView的水平滾動 - 小問題
滾動型你使用哪一種?你能分享你所做的事嗎? –