android的Theme
16lz
2021-01-23
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之Activity透明背景
- Android如何让TextView子元素随着父元素的背景变化而改变字体颜
- android 设置Button或者ImageButton的背景透明
- Android如何横屏, 全屏, 背景灯常量
- textAppearance 解答,android系统主题样式
- android 设置主题
- Android Studio点击按钮更换背景图片
- 自定义背景文件,android:shape的使用!
- Android系统自带主题样式(android:theme),Android Dialog 系统样式