android 弹出框,放这里给大家常用
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="530dp" android:layout_height="wrap_content" android:background="@drawable/dialog_bg" android:orientation="vertical" > <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="20dip" android:orientation="horizontal" > <TextView android:id="@+id/dialog_edittext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#ffffff" android:textSize="25sp" /> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="20dip" android:orientation="horizontal" > <Button android:id="@+id/custom_button_ok" android:layout_width="170dip" android:layout_height="70dip" android:background="@drawable/move_sort_word_bg" android:text="@string/button_ok" android:textColor="#ffffff" android:textSize="30sp" /> <Button android:id="@+id/custom_button_cancl" android:layout_width="170dip" android:layout_height="70dip" android:layout_marginLeft="20dp" android:background="@drawable/move_sort_word_bg" android:text="@string/button_cancl" android:textColor="#ffffff" android:textSize="30sp" /> </LinearLayout> <!-- android:background="@drawable/botton" --></LinearLayout>