Android 当对话框弹出时,状态栏将隐藏

Android 当对话框弹出时,状态栏将隐藏,android,dialog,statusbar,Android,Dialog,Statusbar,我有一个带有列表视图的活动,并且单击项目,我必须显示一个带有全屏主题的对话框(android.R.style.theme\u Black\u NoTitleBar\u Fullscreen)对话框可见活动的状态栏可见性消失。我在该活动的清单中有android:theme=“@style/AppTheme.NoActionBar”主题 <style name="AppTheme.NoActionBar"> <item name="windowActionBar

我有一个带有
列表视图
的活动,并且
单击项目
,我必须显示一个带有全屏主题的对话框
(android.R.style.theme\u Black\u NoTitleBar\u Fullscreen)
对话框可见活动的状态栏可见性消失。我在该活动的清单中有
android:theme=“@style/AppTheme.NoActionBar”
主题

  <style name="AppTheme.NoActionBar">
        <item name="windowActionBar">true</item>
        <item name="windowNoTitle">true</item>

    </style>

真的
真的

请帮帮我。

试试这个,为我工作

将其添加到各自活动中的AndroidManifest.xml

android:windowSoftInputMode="adjustPan"
在该活动中,添加到父主布局

android:fitsSystemWindows="true"

我已将CoordinatorLayout视图添加到根标记,并修复了该问题

 <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"

        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fitsSystemWindows="true">

    </android.support.design.widget.CoordinatorLayout>

尝试添加adjustResize | adjustPan