Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/230.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,我有一个带有自定义主题的选项卡式活动,如下所示 这是该主题的styles.xml <style name="myCustomDialog" parent="Theme.AppCompat.Dialog"> <item name="colorPrimaryDark">@color/MyTransparent</item> <item name="windowNoTitle">true</item> <ite

我有一个带有自定义主题的
选项卡式活动
,如下所示

这是该主题的
styles.xml

<style name="myCustomDialog" parent="Theme.AppCompat.Dialog">
    <item name="colorPrimaryDark">@color/MyTransparent</item>
    <item name="windowNoTitle">true</item>
    <item name ="android:textColor">@color/PaleBlack</item>
    <item name="android:editTextColor">@color/PaleBlack</item>
    <item name="android:buttonStyle">@style/myCustomButon</item>
</style>
但是当我这样做的时候,我会在顶部得到一个黑色的条,我认为这是动作条,因为当我把
colorPrimaryDark
设置为
transparent
时,它变成了灰色。看起来像这样

我怎样才能摆脱酒吧?

试试这个:

Window window = getWindow();
// clear all flags but dim behind
window.setFlags(FLAG_DIM_BEHIND, Integer.MAX_VALUE);
Window window = getWindow();
// clear all flags but dim behind
window.setFlags(FLAG_DIM_BEHIND, Integer.MAX_VALUE);