全屏显示:
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
处理黑屏:style
<style name="AppTheme" parent="android:Theme.Translucent.NoTitleBar.Fullscreen">    
<activity android:name=".MainActivity"    android:theme="@style/AppTheme"    >

m0001Image = (ImageView) findViewById(R.id.image_0001);
//随机数图片的显示
int array[] = {R.drawable.a1, R.drawable.a2, R.drawable.a3, R.drawable.a4,        R.drawable.a5, R.drawable.a6, R.drawable.a7, R.drawable.a8,        R.drawable.a9};Random rnd = new Random();int index = rnd.nextInt(8);Resources resources = getBaseContext().getResources();Drawable cur = resources.getDrawable(array[index]);m0001Image.setBackgroundDrawable(cur);
窗口主题设置:(这里主要对于Activity设置,用到系统自动主题内容) 

•android:theme=”@android:style/Theme.Dialog” 将一个Activity显示为能话框模式 
•android:theme=”@android:style/Theme.NoTitleBar” 不显示应用程序标题栏 
•android:theme=”@android:style/Theme.NoTitleBar.Fullscreen” 不显示应用程序标题栏,并全屏 
•android:theme=”Theme.Light” 背景为白色 
•android:theme=”Theme.Light.NoTitleBar” 白色背景并无标题栏 
•android:theme=”Theme.Light.NoTitleBar.Fullscreen” 白色背景,无标题栏,全屏 
•android:theme=”Theme.Black” 背景黑色 
•android:theme=”Theme.Black.NoTitleBar” 黑色背景并无标题栏 
•android:theme=”Theme.Black.NoTitleBar.Fullscreen” 黑色背景,无标题栏,全屏 
•android:theme=”Theme.Wallpaper” 用系统桌面为应用程序背景 
•android:theme=”Theme.Wallpaper.NoTitleBar” 用系统桌面为应用程序背景,且无标题栏 
•android:theme=”Theme.Wallpaper.NoTitleBar.Fullscreen” 用系统桌面为应用程序背景,无标题栏,全屏 
•android:theme=”Translucent” 半透明 
•android:theme=”Theme.Translucent.NoTitleBar” 
•android:theme=”Theme.Translucent.NoTitleBar.Fullscreen” 
•android:theme=”Theme.Panel” 
•android:theme=”Theme.Light.Panel”

更多相关文章

  1. Android调用系统自定义设置界面
  2. android TextView 的圆角背景
  3. Android替换/修改系统默认输入法
  4. android软件开发:后台监控应用程序包的安装&卸载
  5. Android读取系统时间
  6. 系统启动之一

随机推荐

  1. 【DB笔试面试719】在Oracle中,什么是OCR、
  2. Oracle结果集缓存(Result Cache)--服务器、
  3. 【DB笔试面试745】在Oracle中,RAC环境下的
  4. 【ASM】Oracle ASM + 11gR2 + RHEL6.5 安
  5. Oracle增量备份和快速备份(块改变跟踪Bloc
  6. Oracle收集统计信息
  7. Oracle 12c 新SQL提示(hint)
  8. Oracle的告警日志之v$diag_alert_ext视图
  9. Oracle行列互换总结
  10. Oracle的SYS用户登录报权限不足(ORA-01031