2015-10-30-02-Android(安卓)Theme主题使用心得
16lz
2021-12-04
- Android设置透明主题
- 透明Activity主题
- 3D界面GLSurfaceView层并把系统背景透过来显示
Android设置透明主题
透明Activity主题:
android:theme="@style/Theme.Translucent" <!-- A theme that has a translucent background. Here we explicitly specify that this theme is to inherit from the system's translucent theme, which sets up various attributes correctly. --> <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>
3D界面(GLSurfaceView层)并把系统背景透过来显示:
android:theme="@style/Theme.CustomBackground_wallpager" <style name="Theme.CustomBackground_wallpager" parent="@android:style/Theme.Wallpaper"> <item name="android:windowNoTitle">true</item> <!-- 没标题 --> <item name="android:windowFullscreen">true</item> <!-- 全屏显示 --> </style>
更多相关文章
- Android(安卓)实现全屏显示的几种方法整理
- Android不依赖Activity的全局悬浮窗实现
- Android不依赖Activity的全局悬浮窗实现
- 介绍一个Android开源项目:GifView——Android显示GIF动画
- android MTP 过滤指定的文件格式
- UI控件--EditText
- EditText的属性
- android 日期时间格式转换;软键盘显示消失;获取系统title
- Android(安卓)控件的显示隐藏上下左右移动动画