Android开发 弹出框/页面样式设置 android:theme
Android弹出框/页面样式设置 android:theme
序号 | 样式属性 | 说明 |
---|---|---|
1 | @android:style/Theme.Dialog | 普通弹出框 (如图1) |
2 | @android:style/Theme.NoTitleBar | 无标题页面 (如图2) |
3 | @android:style/Theme.NoTitleBar.Fullscreen | 无标题且全屏界面 (如图3) |
4 | @android:style/Theme.Light | 白色背景界面 (如图4) |
5 | @android:style/Theme.Light.NoTitleBar | 白色背景无标题界面 |
6 | @android:style/Theme.Light.NoTitleBar.Fullscreen | 白色背景无标题全屏界面 |
7 | @android:style/Theme.Black | 黑色背景界面 |
8 | @android:style/Theme.Black.NoTitleBar | 黑色背景无标题界面 |
9 | @android:style/Theme.Black.NoTitleBar.Fullscreen | 黑色背景无标题全屏界面 |
10 | @android:style/Theme.Wallpaper | 桌面壁纸为背景界面 (如图10) |
11 | @android:style/Theme.Wallpaper.NoTitleBar | 桌面壁纸为背景无标题界面 |
12 | @android:style/Theme.Wallpaper.NoTitleBar.Fullscreen | 桌面壁纸为背景无标题全屏界面 |
13 | @android:style/Theme.Translucent | 透明背景界面 (如图13) |
14 | @android:style/Theme.Translucent.NoTitleBar | 透明背景无标题界面 |
15 | @android:style/Theme.Translucent.NoTitleBar.Fullscreen | 透明背景无标题全屏界面 |
16 | @android:style/Theme.Panel | 平板模式界面 (如图16) |
17 | @android:style/Theme.Light.Panel | 白色背景平板模式界面 |
图1 弹出框页面
图2 无标题页面
图3 无标题且全屏界面
图4 白色背景页面
图10 桌面壁纸为背景页面
图13 透明背景页面(页面内容为黑色的文本)
图16 平板模式页面
至此 问题完美解决