2015-10-30-02-Android Theme主题使用心得
16lz
2021-01-23
- 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 界面效果12】EditText中的多行输入问题
- Android 简单的账号密码登陆界面(IO流)
- 主界面监听返回键,退出程序
- Android:解决列表滚动时背景色变黑的方法
- 写信息的界面
- android用ViewPager实现欢迎界面
- 关于文字颜色/图片背景---selector状态列表
- Android 主题(Theme)实现
- android通过shape.xml制作渐变背景