Theme

Theme 跟 style 很像,不過套用的對象是 Application 或 Activity,用法也是大同小異。

跟大多數的程式設計概念一樣,它也有繼承的概念。如: Theme.Holo 是繼承 Theme,Theme.Holo.Light 則是繼承了 Theme.Holo。而 Theme 都是先繼承目前現有的,再去做個別風格的修改。

Theme系列可供使用的Theme說明
Theme@android:style/Theme基本(深色)
:::@android:style/Theme.Dialog對話盒
:::@android:style/Theme.Panel小窗格(背景透明)
:::@android:style/Theme.NoTitleBar沒有 ActionBar
:::@android:style/Theme.NoTitleBar.Fullscreen全螢幕
Theme.Light@android:style/Theme.Light基本(淺色)
:::@android:style/Theme.Light.Dialog對話盒
:::@android:style/Theme.Light.Panel小窗格(背景透明)
:::@android:style/Theme.Light.NoTitleBar沒有 ActionBar
:::@android:style/Theme.Light.NoTitleBar.Fullscreen全螢幕
Theme.Holo@android:style/Theme.HoloHolo(深色)
:::@android:style/Theme.Holo.Dialog對話盒
:::@android:style/Theme.Holo.Panel小窗格(背景透明)
:::@android:style/Theme.Holo.NoTitleBar沒有 ActionBar
:::@android:style/Theme.Holo.NoTitleBar.Fullscreen全螢幕
Theme.Holo.Light@android:style/Theme.Holo.LightHolo(淺色)
:::@android:style/Theme.Holo.Light.Dialog對話盒
:::@android:style/Theme.Holo.Light.Panel小窗格(背景透明)
:::@android:style/Theme.Holo.Light.NoTitleBar沒有 ActionBar
:::@android:style/Theme.Holo.Light.NoTitleBar.Fullscreen全螢幕
Theme.Translucent@android:style/Theme.Translucent背景透明
:::@android:style/Theme.Translucent.NoTitleBar沒有 ActionBar
:::@android:style/Theme.Translucent.NoTitleBar.Fullscreen全螢幕