android 垂直自动滚动条,Android实现Activity水平和垂直滚动条的方法
生活随笔
收集整理的這篇文章主要介紹了
android 垂直自动滚动条,Android实现Activity水平和垂直滚动条的方法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
本文實例講述了Android實現Activity水平和垂直滾動條的方法。分享給大家供大家參考,具體如下:
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical" >
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
根標簽是ScrollView下面的子標簽是HorizontalScrollView,然后HorizontalScrollView下面就是你自己的布局了。
Ps:Scrollview和HorizontalScrollView標簽下面都只能嵌入一個標簽
希望本文所述對大家Android程序設計有所幫助。
總結
以上是生活随笔為你收集整理的android 垂直自动滚动条,Android实现Activity水平和垂直滚动条的方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: qfp封装能够linux,QFP、PQF
- 下一篇: android 重新启动应用程序,通过单