扩展对话框大小后,将显示对话框中的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);