如何在android api 27上显示从不显示的中断模式?
此代码适用于api级别28。如何在android api 27上实现这一点如何在android api 27上显示从不显示的中断模式?,android,display-cutouts,Android,Display Cutouts,此代码适用于api级别28。如何在android api 27上实现这一点 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { window.attributes.layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER } 我试过了,但没用 <style name="PlayerTheme" parent="Theme.Ap
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
window.attributes.layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER
}
我试过了,但没用
<style name="PlayerTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">#000000</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowLayoutInDisplayCutoutMode" tools:targetApi="27">
never
</item>
</style>
#000000
@颜色/原色暗
@颜色/颜色重音
从未