Android Theme
生活随笔
收集整理的這篇文章主要介紹了
Android Theme
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Theme種類
- 所有能應(yīng)用于應(yīng)用程序主題都是以“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 | 系統(tǒng)自帶主題: API 1: android:Theme 根主題 android:Theme.Black 背景黑色 android:Theme.Light 背景白色 android:Theme.Wallpaper 以桌面墻紙為背景 android:Theme.Translucent 透明背景 android:Theme.Panel 平板風(fēng)格 android:Theme.Dialog 對話框風(fēng)格 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 設(shè)備默認(rèn)根主題 Theme.DeviceDefault.Black 設(shè)備默認(rèn)黑主題 Theme.DeviceDefault.Light 設(shè)備默認(rèn)白主題API 21: (網(wǎng)上常說的 Android Material Design 就是要用這種主題) Theme.Material Material根主題 Theme.Material.Light Material白主題================================================================ 兼容包v7中帶的主題: Theme.AppCompat 兼容主題的根主題 Theme.AppCompat.Black 兼容主題的黑色主題 Theme.AppCompat.Light 兼容主題的白色主題... |
Theme風(fēng)格種類
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Black 黑色風(fēng)格 Light 光明風(fēng)格 Dark 黑暗風(fēng)格 DayNight 白晝風(fēng)格 Wallpaper 墻紙為背景 Translucent 透明背景 Panel 平板風(fēng)格 Dialog 對話框風(fēng)格 NoTitleBar 沒有TitleBar NoActionBar 沒有ActionBar Fullscreen 全屏風(fēng)格 MinWidth 對話框或者ActionBar的寬度根據(jù)內(nèi)容變化,而不是充滿全屏 WhenLarge 對話框充滿全屏 TranslucentDecor 半透明風(fēng)格 NoDisplay 不顯示,也就是隱藏了 WithActionBar 在舊版主題上顯示ActionBar |
總結(jié)
以上是生活随笔為你收集整理的Android Theme的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: matlab 层次聚类
- 下一篇: android自定义radiogroup