Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/218.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在对话框中,在android studio中标题行之后_Android - Fatal编程技术网

在对话框中,在android studio中标题行之后

在对话框中,在android studio中标题行之后,android,Android,尝试使用以下选项制作菜单: 我只能做到以下几点: 将此xml代码放在标题标签下方 <view xmlns:android="http://schemas.android.com/apk/res/android" android:background="#30111111" android:layout_width="match_parent" android:layout_height="1dp" android:id="@+id/divi

尝试使用以下选项制作菜单:

我只能做到以下几点:


将此xml代码放在标题标签下方

    <view
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:background="#30111111"
    android:layout_width="match_parent"
    android:layout_height="1dp"
    android:id="@+id/divider" />

尝试编辑对话框xml

在需要行的顶部使用下面的xml 其中#CCCC是线条的颜色

<View
       android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="#cccccc"/>

为对话框布局添加xml文件。