android中style属性值介绍
来源:互联网 发布:程序员英语词汇app 编辑:程序博客网 时间:2024/05/05 22:35
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值,比如:<activityandroid: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部分属性值介绍
- ubi工具使用命令
- idangerous.swiper.js
- 函数说明(fileno)
- linux i2c_driver 结构体解析
- mysql中case when then 的使用
- android中style属性值介绍
- 今天遇到一个问题:在程序中加入的定时触发器,当时出现这样一个问题,触发器定时2秒,程序从后台查询数据经过复杂处理后时间超过了2秒,我查阅好些网络上说有可能触发器等待程序执行完毕后,在触发下一次,也有说
- GTK+引起的一场腥风血雨
- 第121天
- GUGS AND ROSES-枪花
- perl函数说明(flock)
- 用expressjs写RESTful API
- Erlang中的数据类型
- 分析下罗本为什么讨人厌