android 中ScrollView的使用
生活随笔
收集整理的這篇文章主要介紹了
android 中ScrollView的使用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
android中布局一般都有兩種方式,一種xml聲明,另外一種則是程序聲明:
xml:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent"android:orientation="vertical" ><ScrollView android:id="@+id/Scroll"android:layout_width="fill_parent"android:layout_height="fill_parent"><TextView android:id="@+id/txt"android:layout_width="wrap_content"android:layout_height="wrap_content"/></ScrollView></LinearLayout>
手動代碼聲明:
總結
以上是生活随笔為你收集整理的android 中ScrollView的使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: androdi 中listview.se
- 下一篇: TextWatcher() 的用法