android的Theme
16lz
2021-12-04
android的Theme一般在activity里面定义,
系统自带主题:android:theme="@android:style/Theme.Dialog"
可以参考
http://androidappdocs.appspot.com/reference/android/R.style.html
常用的系统主题:
Theme_Dialog: Diaglog中常用,使activity看起来看一个框,边框在内容四周。
Theme_Translucent: 半透明的背景主题,能够看到下面的window.
Theme_Wallpaper: 背景是选择的壁纸
Theme_Light: 白底黑字,默认黑底白字
自定义主题:android:theme="@style/Theme.CustomDialog"
参考AppDemo中CustomDialogActivity,父style是Theme.Dialog,其背景为自定义。
更多相关文章
- Android(shape.xml)
- Android(安卓)Theme详细
- Android系统中自带的图标&一些预定义样式&参考颜色值
- Android之Activity透明背景
- Android如何让TextView子元素随着父元素的背景变化而改变字体颜
- Android中的Selector的用法
- android 设置Button或者ImageButton的背景透明
- Android中drawable各个属性讲解
- Android中drawable各个属性讲解