, , styles.xml, , ( colors.xml), #AARRGGBB:
<color name="transparent">#00000000</color>
:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:theme="@style/AppTheme">
<TextView
android:id="@+id/dialog_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
android:layout_marginBottom="4dp"
android:text="Dialog Text"/>
</LinearLayout>
: "MyDialogTheme" ( ) "Theme.AppCompat.Light.Dialog"
" Dialog" :
onAttach(), onCreateDialog() .
, " ", FragmentActivity, AppCompatActivity - ( API 11 +):
android.app.DialogFragment android.support.v4.app.DialogFragment
, , ( ) / . , , , .