Android:Theme总结--小白总结

本文详细列举并总结了Android中多种主题风格,包括Theme.DeviceDefault、Theme.Holo、Theme.Light等,涵盖不同背景颜色、标题栏存在与否、是否全屏等应用场景,帮助开发者更好地理解和选择合适的主题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

API版本不高,所以没有列出全部!但是大部分常见的都有:

1.android:theme=“@android:style/Theme” //背景黑色-->1.png

2.android:theme="@android:style/Theme.Black" //背景黑色-->2.png

3.android:theme="@android:style/Theme.Black.NoTitleBar" //背景黑色没有标题栏-->3.png

4.android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" //背景黑色没有标题栏并且充满屏幕-->4.png

5.android:theme="@android:style/Theme.DeviceDefault" //背景黑色并且标题栏的颜色也变成了黑色-->5.png

6.android:theme="@android:style/Theme.DeviceDefault.Dialog //变为一个对话框-->6.png

7.android:theme="@android:style/Theme.DeviceDefault.Dialog.Alert" //变为一个对话框,感觉跟上面的没什么大区别-->7.png

8.android:theme="@android:style/Theme.DeviceDefault.Dialog.MinWidth" //变为一个对话框并且加上了最小宽度-->8.png

9.android:theme="@android:style/Theme.DeviceDefault.Dialog.NoActionBar" //变为一个对话框并且没有标题栏-->9.png

10.android:theme="@android:style/Theme.DeviceDefault.Dialog.NoActionBar.MinWidth" //变为一个对话框并且没有标题栏加上了最小宽度-->10.png

11.android:theme="@android:style/Theme.DeviceDefault.DialogWhenLarge" -->11.png,一直在想它跟Theme.DeviceDefault的区别..

12.android:theme="@android:style/Theme.DeviceDefault.DialogWhenLarge.NoActionBar" //没有标题栏-->12.png

13.android:theme="@android:style/Theme.DeviceDefault.InputMethod" -->13.png

14.android:theme="@android:style/Theme.DeviceDefault.Light" //背景白色并且标题栏的颜色也变成了白色-->14.png

15.android:theme="@android:style/Theme.DeviceDefault.Light.DarkActionBar" //背景白色标题栏的颜色黑色-->15.png

16.android:theme="@android:style/Theme.DeviceDefault.Light.Dialog" //背景白色对话框-->16.png

17.android:theme="@android:style/Theme.DeviceDefault.Light.Dialog.Alert" //背景白色对话框-->17.png

18.android:theme="@android:style/Theme.DeviceDefault.Light.Dialog.MinWidth"//变为一个白色对话框并且加上了最小宽度-->18.png

19.android:theme="@android:style/Theme.DeviceDefault.Light.Dialog.NoActionBar" //背景白色对话框没有标题栏-->19.png

20.android:theme="@android:style/Theme.DeviceDefault.Light.Dialog.NoActionBar.MinWidth"//背景白色对话框没有标题栏加上最小宽度-->20.png

21.android:theme="@android:style/Theme.DeviceDefault.Light.DialogWhenLarge"-->告诉我它跟DeviceDefault.Light的区别21.png

22.android:theme="@android:style/Theme.DeviceDefault.Light.DialogWhenLarge.NoActionBar"//没有标题栏-->22.png

23.android:theme="@android:style/Theme.DeviceDefault.Light.NoActionBar" //背景白色没有标题栏-->23.png

24. android:theme="@android:style/Theme.DeviceDefault.Light.NoActionBar.Fullscreen"  //背景白色没有标题栏并且充满屏幕-->24.png

25.android:theme="@android:style/Theme.DeviceDefault.Light.Panel" //本页面中间显示-->25.png

26.android:theme="@android:style/Theme.DeviceDefault.Panel" //本页面中间显示-->26.png

27.android:theme="@android:style/Theme.DeviceDefault.Wallpaper"//背景和手机主界面一样-->27.png

28.android:theme="@android:style/Theme.DeviceDefault.Wallpaper.NoTitleBar"//背景和手机主界面一样没有标题栏-->28.png

29.android:theme="@android:style/Theme.Dialog" //对话框显示-->29.png

30.android:theme="@android:style/Theme.Holo" //标题栏不一样了....-->30.png

31.android:theme="@android:style/Theme.Holo.Dialog" //对话框了-->31.png

32.android:theme="@android:style/Theme.Holo.Dialog.MinWidth" //对话框加最小宽度-->32.png

33.android:theme="@android:style/Theme.Holo.Dialog.NoActionBar" //没有标题栏le -->33.png

34.android:theme="@android:style/Theme.Holo.Dialog.NoActionBar.MinWidth" //没有标题栏le加最小宽度 -->34.png

35.android:theme="@android:style/Theme.Holo.DialogWhenLarge" -->35.png

36.android:theme="@android:style/Theme.Holo.DialogWhenLarge.NoActionBar" -->36.png

37.android:theme="@android:style/Theme.Holo.InputMethod" -->37.png

38.android:theme="@android:style/Theme.Holo.Light" -->38.png

39.android:theme="@android:style/Theme.Holo.Light.DarkActionBar" //白色注意标题栏 -->39.png

40.android:theme="@android:style/Theme.Holo.Light.Dialog"//白色对话框-->40.png

4

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值