透明活动混合屏幕

时间:2019-01-30 07:51:53

标签: android android-activity

我的项目有一个活动,如弹出屏幕。样式看起来像这样

<style name="ContentPopupTheme" parent="Theme.Translucent.NoTitleBar">
        <item name="android:popupMenuStyle">@style/PopupMenu</item>
        <item name="android:textAppearanceLargePopupMenu">@style/PopupMenu.MenuItemTextAppearance</item>
        <item name="android:textAppearanceSmallPopupMenu">@style/PopupMenu.MenuItemTextAppearance</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name ="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowAnimationStyle">@null</item>
        <item name="android:windowFullscreen">true</item>
        <item name="android:windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
    </style>

打开活动时出现问题:

https://ibb.co/F6v8pDh

0 个答案:

没有答案