1. 程式人生 > >Android:給對話方塊AlertDialog新增垂直滾動條

Android:給對話方塊AlertDialog新增垂直滾動條

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView
  3.   android:layout_width="fill_parent" 
  4.   android:layout_height="fill_parent"
  5.   xmlns:android="http://schemas.android.com/apk/res/android"> 
  6. <LinearLayout
  7.     android:orientation="vertical"
  8.     android:layout_width="fill_parent"
  9.     android:layout_height="fill_parent"
  10.     >
  11. <TextView android:id="@+id/updatetv"
  12.                   android:layout_width="fill_parent"
  13.                   android:layout_height="wrap_content"
  14.                   android:layout_marginLeft="10dip"
  15.                   android:textSize="20sp"
  16.                 />
  17. </LinearLayout>
  18. </ScrollView>