android中的style部分属性值介绍
来源:互联网 发布:名著推荐 知乎 编辑:程序博客网 时间:2024/05/26 14:12
http://blog.sina.com.cn/s/blog_70c759fd01013phv.html
Android平台定义的主题样式:
android:theme="@android:style/Theme.Dialog"
•android:theme="@android:style/Theme.NoTitleBar"
•android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
•android:theme="@android:style/Theme.Light"
•android:theme="@android:style/Theme.Light.NoTitleBar"
•android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen"
•android:theme="@android:style/Theme.Black"
•android:theme="@android:style/Theme.Black.NoTitleBar"
•android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
•android:theme="@android:style/Theme.Wallpaper"
•android:theme="@android:style/Theme.Wallpaper.NoTitleBar"
•android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen"
•android:theme="@android:style/Translucent" 半透明效果
•android:theme="@android:style/Theme.Translucent.NoTitleBar"
•android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
•android:theme="@android:style/Theme.Panel"
Android平台定义了三种字体大小:
"?android:attr/textAppearanceLarge"
"?android:attr/textAppearanceMedium"
"?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
Android的ProgressBar样式:
style="?android:attr/progressBarStyleHorizont
style="?android:attr/progressBarStyleLarge"
style="?android:attr/progressBarStyleSmall"
style="?android:attr/progressBarStyleSmallTit
分隔符
横向: <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样式
style="?android:attr/starStyle"
类似标题栏效果的TextView
style="?android:attr/listSeparatorTextViewSty
其它有用的样式
android:layout_height="?android:attr/listPreferredItemHeight"
android:paddingRight="?android:attr/scrollbarSize"
style="?android:attr/windowTitleBackgroundSty
style="?android:attr/windowTitleStyle"
android:layout_height="?android:attr/windowTitleSize"
android:background="?android:attr/windowBackground"
修改Activity的标题栏样式
如在styles.xml中增加
<resources>
</resources>
接着再修改AndroidManifest.xml文件,找到要自定义标题栏的Activity,添加上android:theme值,比如:<activity android:name=".MainActivity" android:theme="@style/autoWindowTitlebar">
去掉所有Activity界面的标题栏
修改AndroidManifest.xml
在application 标签中添加android:theme=”@android:style/Theme.NoTitleBar”
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- android中的style部分属性值介绍
- (十六)错误和异常
- 如何在eclipse里关联查看android源码
- 在Eclipse中使用Checkstyle
- 大家好,这是我的第一篇博文
- 设计模式(九)主动对象模式
- android中的style部分属性值介绍
- 技术线?还是技术管理线?
- Android socket 客户端 C++服务端, 延时严重解决,贴点粘包代码
- 邮件订阅模块使用说明
- 你好,世界
- Linux学习篇(三)Code::Bolcks多线程学习
- Linux中socket 错误编码表 errno
- python实现简易联系人
- UVa 107 帽子里的猫