日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) >

Android系统自带样式(@android:style/)

發(fā)布時(shí)間:2025/1/21 50 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Android系统自带样式(@android:style/) 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

AndroidManifest.xml文件的activity中配置 ? (API 18中Manifest文件中,<activity />要有android:theme="@android:style/Theme",否則報(bào)錯(cuò)

1android:theme="@android:style/Theme"

默認(rèn)狀態(tài),即如果theme這里不填任何屬性的時(shí)候,默認(rèn)為Theme(最常用)

2android:theme="@android:style/Theme.NoDisplay"

任何都不顯示。比較適用于只是運(yùn)行了activity,但未顯示任何東西

3android:theme="@android:style/Theme.NoTitleBar“

背景主題的沒(méi)有標(biāo)題欄的樣式,默認(rèn)如果沒(méi)有設(shè)置的話,顯示黑背景

4android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

背景主題的沒(méi)有標(biāo)題欄且全屏的樣式,默認(rèn)為黑背景

5android:theme="@android:style/Theme.Black"

默認(rèn)狀態(tài)下黑背景

6android:theme="@android:style/Theme.Black.NoTitleBar"

黑背景主題的沒(méi)有標(biāo)題欄的樣式

7android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"

黑背景主題的沒(méi)有標(biāo)題欄且全屏的樣式

8android:theme="@android:style/Theme.Light"

默認(rèn)狀態(tài)下亮背景,與上述黑背景Theme.Black相反

9android:theme="@android:style/Theme.Light.NoTitleBar"

亮背景主題的沒(méi)有標(biāo)題欄的樣式,與Theme.Black.NoTitleBar相反

10android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen"

亮背景主題的沒(méi)有標(biāo)題欄且全屏顯示的樣式,與Theme.Black.NoTitleBa.Fullscreenr相反

11android:theme="@android:style/Theme.Dialog"

對(duì)話框樣式將整個(gè)activity變成對(duì)話框樣式出現(xiàn)

12android:theme="@android:style/Theme.InputMethod"

Windowanimations that are applied to input method overlay windows

13android:theme="@android:style/Theme.Panel"

刪除掉所有多余的窗口裝飾,在一個(gè)空的矩形框中填充內(nèi)容,作用范圍相當(dāng)于把dialog中的所有元素全部去掉,只是一個(gè)空的矩形框,且此為默認(rèn)的樣式

14android:theme="@android:style/Theme.Light.Panel"

刪除掉所有多余的窗口裝飾,在一個(gè)空的矩形框中填充內(nèi)容,作用范圍相當(dāng)于把dialog中的所有元素全部去掉,只是一個(gè)空的矩形框,且默認(rèn)是light的樣式

15android:theme="@android:style/Theme.Wallpaper"

使用墻紙做主題,默認(rèn)狀態(tài)。

16android:theme="@android:style/Theme.WallpaperSettings"

使用墻紙做主題,默認(rèn)是使用將上一個(gè)界面調(diào)暗之后作為主題

17android:theme="@android:style/Theme.Light.WallpaperSettings"

使用墻紙做主題,默認(rèn)Light狀態(tài)

18android:theme="@android:style/Theme.Wallpaper.NoTitleBar"

使用墻紙做主題,且沒(méi)有標(biāo)題欄

19android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen"

使用墻紙做主題,且沒(méi)有標(biāo)題欄,且全屏顯示

20android:theme="@android:style/Theme.Translucent"

半透明狀態(tài)下的背景,將運(yùn)行此activity之前的屏幕作為半透明狀態(tài)作為此activity運(yùn)行時(shí)的樣式。

21android:theme="@android:style/Theme.Translucent.NoTitleBar"

半透明狀態(tài)下沒(méi)有標(biāo)題欄的背景,將運(yùn)行此activity之前的屏幕作為半透明狀態(tài)作為此activity運(yùn)行時(shí)的樣式。

22android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"

半透明狀態(tài)下沒(méi)有標(biāo)題欄且全屏的背景,將運(yùn)行此activity之前的屏幕作為半透明狀態(tài)作為此activity運(yùn)行時(shí)的樣式。

?

總結(jié)

以上是生活随笔為你收集整理的Android系统自带样式(@android:style/)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。