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

随机推荐

  1. Android列表控件Spinner简单用法示例
  2. Android--Socket通信
  3. the android virtual Device AVD2.3.3 is
  4. 应聘Android开发工程师-Java笔试部分的答
  5. Android GPS学习笔记—GpsLP初始化
  6. Android(安卓)Activiy的作用
  7. Android LBS系列04 位置和地图服务简介
  8. Android中AutoCompleteTextView的特殊使
  9. Android中文API (110) —— CursorTreeAd
  10. Android(安卓)图片文字单位 px、dp、sp区