values的style下添加:
<style name="aaa" parent="Theme.AppCompat.DayNight.NoActionBar"> <!-- 颜色渐变 --> <item name="android:windowTranslucentStatus">true</item> </style>
清单文件中引用
android:theme="@style/aaa"
设置悬浮显示
linn.bringToFront();
values的style下添加:
<style name="aaa" parent="Theme.AppCompat.DayNight.NoActionBar"> <!-- 颜色渐变 --> <item name="android:windowTranslucentStatus">true</item> </style>
清单文件中引用
android:theme="@style/aaa"
设置悬浮显示
linn.bringToFront();