Theme种类
- 所有能应用于应用程序主题都是以“Theme.”开头
- 在v7中有很多以“Base”开头的主题,是一些父主题,不建议直接使用
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 系统自带主题: API 1: android:Theme 根主题 android:Theme.Black 背景黑色 android:Theme.Light 背景白色 android:Theme.Wallpaper 以桌面墙纸为背景 android:Theme.Translucent 透明背景 android:Theme.Panel 平板风格 android:Theme.Dialog 对话框风格 The Holo themes must not be modified in order to pass CTS. API 11: android:Theme.Holo Holo根主题 android:Theme.Holo.Black Holo黑主题 android:Theme.Holo.Light Holo白主题 API 14: Theme.DeviceDefault 设备默认根主题 Theme.DeviceDefault.Black 设备默认黑主题 Theme.DeviceDefault.Light 设备默认白主题 API 21: (网上常说的 Android Material Design 就是要用这种主题) Theme.Material Material根主题 Theme.Material.Light Material白主题 ================================================================ 兼容包v7中带的主题: Theme.AppCompat 兼容主题的根主题 Theme.AppCompat.Black 兼容主题的黑色主题 Theme.AppCompat.Light 兼容主题的白色主题 ... |
Theme风格种类
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Black 黑色风格 Light 光明风格 Dark 黑暗风格 DayNight 白昼风格 Wallpaper 墙纸为背景 Translucent 透明背景 Panel 平板风格 Dialog 对话框风格 NoTitleBar 没有TitleBar NoActionBar 没有ActionBar Fullscreen 全屏风格 MinWidth 对话框或者ActionBar的宽度根据内容变化,而不是充满全屏 WhenLarge 对话框充满全屏 TranslucentDecor 半透明风格 NoDisplay 不显示,也就是隐藏了 WithActionBar 在旧版主题上显示ActionBar |