- 博客(0)
- 资源 (2)
- 收藏
- 关注
android自定义弹出框
<?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:gravity="center"
>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="300dip" android:layout_height="130dip"
android:background="@drawable/dialog_bg">
<TextView android:layout_width="fill_parent" android:padding="5dip" android:gravity="center"
android:textSize="20sp" android:id="@+id/msg"
android:layout_height="60dip"/>
<LinearLayout android:layout_width="fill_parent" android:gravity="center_horizontal"
android:id="@+id/buttons" android:layout_below="@id/msg" android:padding="5dip"
android:layout_height="wrap_content" android:orientation="horizontal">
<Button android:layout_width="135dip" android:textSize="18sp"
android:layout_height="45dip"
android:text="确定"
android:id="@+id/btnOk"/>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
android自定义弹出框,很实用的
2012-02-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人