Android Theme 主题使用心得
透明 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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

上一篇: Android Log 使用心得
下一篇: 谈谈自己对于 AOP 的了解
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论