android中自带的主题(theme)的集锦:
- •android:theme="@android:style/Theme.Dialog"<wbr><wbr>将一个Activity显示为对话框模式<br></wbr></wbr>
- •android:theme="@android:style/Theme.NoTitleBar"<wbr><wbr>不显示应用程序标题栏<br></wbr></wbr>
- •android:theme="@android:style/Theme.NoTitleBar.Fullscreen"<wbr><wbr>不显示应用程序标题栏,并全屏<br></wbr></wbr>
- •android:theme="@android:style/Theme.Light"<wbr><wbr>背景为白色<br></wbr></wbr>
- •android:theme="@android:style/Theme.Light.NoTitleBar"<wbr><wbr>白色背景并无标题栏<br></wbr></wbr>
- •android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen"<wbr><wbr>白色背景,无标题栏,全屏<br></wbr></wbr>
- •android:theme="@android:style/Theme.Black"<wbr><wbr>背景黑色<br></wbr></wbr>
- •android:theme="@android:style/Theme.Black.NoTitleBar"<wbr><wbr>黑色背景并无标题栏<br></wbr></wbr>
- •android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"<wbr><wbr> 黑色背景,无标题栏,全屏<br></wbr></wbr>
- •android:theme="@android:style/Theme.Wallpaper"<wbr><wbr>用系统桌面为应用程序背景<br></wbr></wbr>
- •android:theme="@android:style/Theme.Wallpaper.NoTitleBar"<wbr><wbr>用系统桌面为应用程序背景,且无标题栏<br></wbr></wbr>
- •android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen"<wbr><wbr>用系统桌面为应用程序背景,无标题栏,全屏<br></wbr></wbr>
- •android:theme="@android:style/Translucent" 半透明效果
- •android:theme="@android:style/Theme.Translucent.NoTitleBar"<wbr><wbr>半透明并无标题栏<br></wbr></wbr>
- •android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"<wbr><wbr>半透明效果,无标题栏,全屏<br></wbr></wbr>
- •android:theme="@android:style/Theme.Panel"
- •android:theme="@android:style/Theme.Light.Panel"
复制代码
android中系统自带的样式(style)的集锦:
Android平台定义了三种字体大小。
- "?android:attr/textAppearanceLarge"
- "?android:attr/textAppearanceMedium"
- "?android:attr/textAppearanceSmall"
复制代码
使用方法:
- android:textAppearance="?android:attr/textAppearanceLarge"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:textAppearance="?android:attr/textAppearanceSmall"
复制代码
或者
- style="?android:attr/textAppearanceLarge"
- style="?android:attr/textAppearanceMedium"
- style="?android:attr/textAppearanceSmall"
复制代码
Android字体颜色
- android:textColor="?android:attr/textColorPrimary"
- android:textColor="?android:attr/textColorSecondary"
- android:textColor="?android:attr/textColorTertiary"
- android:textColor="?android:attr/textColorPrimaryInverse"
- android:textColor="?android:attr/textColorSecondaryInvers<wbr>e" </wbr>
复制代码
AndroidProgressBar
- style="?android:attr/progressBarStyleHorizont<wbr>al"<br></wbr>
- style="?android:attr/progressBarStyleLarge"
- style="?android:attr/progressBarStyleSmall"
- style="?android:attr/progressBarStyleSmallTit<wbr>le" </wbr>
复制代码
分隔符横向:
- <View
- android:layout_width="fill_parent"
- android:layout_height="1dip"
- android:background="?android:attr/listDivider" />
复制代码
分隔符纵向:
- <View android:layout_width="1dip"
- android:layout_height="fill_parent"
- android:background="?android:attr/listDivider" />
复制代码
CheckBox<wbr><wbr></wbr></wbr>
- style="?android:attr/starStyle"
复制代码
其它<wbr><wbr></wbr></wbr>
- //类似标题栏效果的TextView
- style="?android:attr/listSeparatorTextViewSty<wbr>le"<br></wbr>
- //其它有用的样式
- android:layout_height="?android:attr/listPreferredItemHeight"
- android:paddingRight="?android:attr/scrollbarSize"
- style="?android:attr/windowTitleBackgroundSty<wbr>le"<br></wbr>
- style="?android:attr/windowTitleStyle"
- android:layout_height="?android:attr/windowTitleSize"
- android:background="?android:attr/windowBackground"
分享到:
相关推荐
android:theme=”@android:style/Theme.Dialog” : Activity显示为对话框模式 android:theme=”@android:style/Theme.NoTitleBar” : 不显示应用程序标题栏 android:theme=”@android:style/Theme.NoTitleBar....
Android_样式(style)&主题(theme)&显示单位
对android中的style和theme进行了比较好的介绍。
android style(样式)和theme(主题)设置
android_UI进阶之style和theme的总结,供学习交流,谢谢~
ladies night2.jar ,cobalt.jar ,visual studio.jar, monokai sublime text3.jar
android 主题(Theme)实现 setTheme() android2.2
Android studio 可以加载使用的第三方主题,内含最常用的几种,非常好用!
android安卓app已经放弃使用Theme.Dialog,改用Theme.Holo.DialogWhenLarge
NULL 博文链接:https://trinityblood.iteye.com/blog/1743655
android_studio_theme集合包android_studio_theme集合包android_studio_theme集合包
Android Theme界面换肤应用实例,也就是更改系统主题风格,可在“应用透明背景的主题”、“应用布景主题1”、“应用布景主题2”三种皮肤风格之间切换,Android换肤对Android手机来说是再简单不过的功能了,个性化...
发现坑 最近在配置项目主题的时候报了如下错误: This Activity already has an...style name=AppTheme.NoActionBar> <item name=android:windowActionBar>false <item name=android:windowNoTitle>true <ite
NULL 博文链接:https://txlong-onz.iteye.com/blog/930222
一,Theme主题 1.1,Theme主题作用范围 Theme主要是针对应用级别的或者说窗体级别,可以设置应用主题(应用换肤效果)或者Activity的主题;主题是不能应用在某一...Android系统提供的主题在:..\platforms\android-29\
Android改Theme实现夜间模式, 说明地址:http://blog.csdn.net/u012572538/article/details/38726549
android 主题设置,感觉不错,上传分享
主题(theme)应用到整个Activity和Application的样式,当设置好主题后,Activity或整个程序中的视图都将使用主题中的属性,当主题和样式中的属性发生冲突时,样式的优先级要高于主题。 自定义主题代码如下(styles....