Android 安卓:如何将样式设置为以下中心“;假;透明活动上方的模式布局?

Android 安卓:如何将样式设置为以下中心“;假;透明活动上方的模式布局?,android,android-layout,android-activity,styling,Android,Android Layout,Android Activity,Styling,我有以下线性布局的透明活动: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:background="#80000000" android:layout_height="match_parent

我有以下线性布局的透明活动:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:background="#80000000"
    android:layout_height="match_parent"
    android:orientation="vertical" >
</LinearLayout>

我想创建这样的布局(是的,我知道背景来自iOS设备,但在这种情况下并不重要) 这意味着,如何设置活动内容的样式,“模式窗口”要居中,要有边距、图标等:

有人能告诉我如何简单有效地设计这样的布局吗


非常感谢您的建议。

创建一个透明的
活动
并显示您想要的内容:是的,我已经创建了透明的活动,但我询问了如何设置活动内容的样式,这意味着。“模式窗口”要居中,要有边距等。只需设计布局,然后将其放入带有边距的
框架布局中即可。e、 g.
和内置的布局模式对话框是FrameLaout、线性布局还是什么?