天天看點

安卓Theme屬性簡介

Android自帶的Theme如下:

   1、Android:theme="@android:style/Theme.Dialog"

     将一個activity顯示為對話框

   2、Android:theme="@android:style/Theme.NoTitleBar"

     應用程式無标題欄

   3、Android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

     應用程式無标題欄,并全屏

   4、Android:theme="@android:style/Theme.Light"

     背景為白色

   5、Android:theme="@android:style/Theme.Light.NoTitleBar"

     背景為白色,且無标題欄

   6、Android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen"

     背景為白色,無标題欄,且全屏

   7、Android:theme="@android:style/Theme.Black"

     背景為黑色

   8、Android:theme="@android:style/Theme.Black.NoTitleBar"

     背景為黑色,且無标題欄

   9、Android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"

     背景為黑色,無标題欄,且全屏

   10、Android:theme="@android:style/Theme.Wallpaper"

     用系統桌面為應用程式背景

   11、Android:theme="@android:style/Theme.Wallpaper.NoTitleBar"

     用系統桌面為應用程式背景,且無标題欄

   12、Android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen"

     用系統桌面為應用程式背景,無标題欄,且全屏

   13、Android:theme="@android:style/Theme.Translucent"

     應用程式透明

   14、Android:theme="@android:style/Theme.Translucent.NoTitleBar"

     應用程式透明,且無标題欄

   15、Android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"

     應用程式透明,無标題欄,且全屏

   16、Android:theme="@android:style/Theme.Panel"

   17、16、Android:theme="@android:style/Theme.Light.Panel"