• 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>  

更多相关文章

  1. Android(安卓)实现全屏显示的几种方法整理
  2. Android不依赖Activity的全局悬浮窗实现
  3. Android不依赖Activity的全局悬浮窗实现
  4. 介绍一个Android开源项目:GifView——Android显示GIF动画
  5. android MTP 过滤指定的文件格式
  6. UI控件--EditText
  7. EditText的属性
  8. android 日期时间格式转换;软键盘显示消失;获取系统title
  9. Android(安卓)控件的显示隐藏上下左右移动动画

随机推荐

  1. Object 开发中常用的重写方法总结toStrin
  2. 在spring 中如何注入map,set,list,property
  3. Spring Hibernate:没有类型为org.hibernat
  4. Java-马士兵设计模式学习笔记-装饰者模式
  5. 在Java中包含运行JavaScript的引擎的原因
  6. Java数组的运用
  7. JSP页面中有一个按钮 点击之后执行JAVA文
  8. Java 容器源码分析之 TreeMap
  9. 拖动层的javasvript代码 十行代码即可写
  10. java 使用Callable和Future返回线程执行