說明
(1) /res/values/目錄, 預設的styles.xml
<resources>
<style name="AppTheme" parent="android:Theme.Black" />
</resources>
(2) 參數
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="Translucent" //半透明
android:theme="Theme.Translucent.NoTitleBar"
android:theme="Theme.Translucent.NoTitleBar.Fullscreen"
android:theme="Theme.Panel"
android:theme="Theme.Light.Panel"
android:theme="@android:style/Theme.Dialog" //將一個Activity顯示為話框模式
android:theme="@android:style/Theme.NoTitleBar" //無標題欄
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" //無標題欄,全螢幕
android:theme="Theme.Wallpaper" //系統桌面為應用程式背景
android:theme="Theme.Wallpaper.NoTitleBar" //系統桌面為應用程式背景,無標題欄
android:theme="Theme.Wallpaper.NoTitleBar.Fullscreen" //系統桌面為應用程式背景,無標題欄,全螢幕