Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
您现在的位置: Android教程網 >> Android系統教程 >  >> Android 技術 >> Android 開發實例

Android 內建主題樣式(android:theme)速查表

編輯:Android 開發實例

在 AndroidManifest.xml 或版面中透過 android:theme 屬性,就能快速套用系統內建的樣式。以下把常用主題整理成對照表:

  • android:theme="@android:style/Theme.Dialog":Activity 以對話框模式顯示
  • android:theme="@android:style/Theme.NoTitleBar":不顯示應用程式標題欄
  • android:theme="@android:style/Theme.NoTitleBar.Fullscreen":不顯示標題欄並全螢幕
  • 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="Theme.Wallpaper":以系統桌面作為應用程式背景
  • android:theme="Theme.Wallpaper.NoTitleBar":桌面背景且無標題欄
  • android:theme="Theme.Wallpaper.NoTitleBar.Fullscreen":桌面背景、無標題欄、全螢幕
  • android:theme="Theme.Translucent":透明背景
  • android:theme="Theme.Translucent.NoTitleBar":透明背景且無標題
  • android:theme="Theme.Translucent.NoTitleBar.Fullscreen":透明背景、無標題、全螢幕
  • android:theme="Theme.Panel":面板風格顯示
  • android:theme="Theme.Light.Panel":淺色面板風格顯示
  1. 上一篇文章:
  2. 下一篇文章:
Copyright © Android教程網 All Rights Reserved