阅读背景:

AlertDialog去除黑边自定义布局_tenpage的专栏

来源:互联网 

自定义布局文件

 

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="https://schemas.android.com/apk/res/android"
	android:layout_height="fill_parent" android:layout_width="fill_parent"
	>
	<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content"
		android:background="@drawable/popup_title" android:id="@+id/about_us_rel01">
		<TextView android:id="@+id/about_us_title" android:layout_width="wrap_content"
				android:layout_height="wrap_content" 
				android:text="关于我们" android:layout_marginLeft="20dip" android:textSize="20dip"/>
		</RelativeLayout>
	<RelativeLayout android:layout_height="wrap_content" android:layout_below="@+id/about_us_rel01"
		android:background="@drawable/popup_bg" android:id="@+id/about_us_rel02"
		android:layout_width="fill_parent" android:gravity="center" >
		
		<ListView android:id="@+id/test_alertdialog_listview"
			android:layout_height="wrap_content" android:layout_width="wrap_content"
		></ListView>
		
		</RelativeLayout>

</RelativeLayout><?xml version="1.0" encoding="utf



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: