Android中的style部分属性值介绍(转载)
来源:互联网 发布:淘宝直播没平台网址 编辑:程序博客网 时间:2024/05/16 11:26
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部分属性值介绍
- 用nfs服务在arm的Linux中板上挂载pc 机的Linux
- C++容器学习文萃
- 一般方法编程求直线与圆交点
- asp连接access、sql数据库代码及数据库常用操作代码
- iOS开发是否应该使用ARC?
- Android中的style部分属性值介绍(转载)
- ACM之while(scanf("%d",&n)!=EOF)
- Spring基于 Annotation 的简单介绍
- 备份:Android 常用 mimeType 表
- 安全字符串处理函数
- linux下查看所有用户及所有用户组【理论篇】
- Linux时间函数介绍
- 开发环境搭建相关
- Delphi 文件操作(3)