Android Relativelayout Custom Dialog Problems

拟墨画扇 提交于 2019-12-06 05:30:54

You can use something like this.

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/root"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical" >

<ScrollView
  android:layout_width="match_parent"
  android:layout_height="0dip"
  android:layout_weight="1" >

 <TextView   android:id="@+id/TextView01"
   android:layout_width="wrap_content" 
   android:layout_height="wrap_content"/>

 </ScrollView>

 <Button android:id="@+id/Button01" 
   android:layout_width="wrap_content" 
   android:layout_height="wrap_content" 
   android:text="Close" />

 </LinearLayout>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!