2011.07.08(2)——— android 背景模糊
16lz
2021-01-23
2011.07.08(2)——— android 背景模糊
详见:apiDemos/app/activity/Translucent Blur
背景模糊处理:
前者是集成系统自带的透明主题 第二个不用系统内置的透明主题
详见:apiDemos/app/activity/Translucent Blur
背景模糊处理:
getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND, WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
<style name="Theme.Translucent" parent="android:style/Theme.Translucent"> <item name="android:windowBackground">@drawable/translucent_background</item> <item name="android:windowNoTitle">true</item> <item name="android:colorForeground">#fff</item> </style>
<style name="Theme.Transparent"> <item name="android:windowIsTranslucent">true</item> <item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item> <item name="android:windowBackground">@drawable/transparent_background</item> <item name="android:windowNoTitle">true</item> <item name="android:colorForeground">#fff</item> </style>
前者是集成系统自带的透明主题 第二个不用系统内置的透明主题
更多相关文章
- Android Button 点击时替换背景颜色和替换当前图标
- 进度条背景的改变,界面更美观
- android 用代码画虚线边框背景
- Android 渐变drawable背景
- Android中由于设置的背景图片太大导致OOM
- Android 自定义渐变背景
- Android下 布局加边框 指定背景色 半透明