zoukankan
html css js c++ java
Android 字体和颜色
对于能够显示文字的控件(如TextView EditText RadioButton Button CheckBox Chronometer等等),你有时需要控制字体的大小。Android平台定义了三种字体大小。
java代码:
"?android:attr/textAppearanceLarge"
"?android:attr/textAppearanceMedium"
"?android:attr/textAppearanceSmall"
复制代码
使用方法为:
java代码:
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"
复制代码
字体颜色
java代码:
android:textColor="?android:attr/textColorPrimary"
android:textColor="?android:attr/textColorSecondary"
android:textColor="?android:attr/textColorTertiary"
android:textColor="?android:attr/textColorPrimaryInverse"
android:textColor="?android:attr/textColorSecondaryInverse"
ProgressBar
style="?android:attr/progressBarStyleHorizontal"
style="?android:attr/progressBarStyleLarge"
style="?android:attr/progressBarStyleSmall"
style="?android:attr/progressBarStyleSmallTitle"
复制代码
分隔符 横向:
java代码:
<View
android:layout_width="fill_parent"
android:layout_height="1dip"
android:background="?android:attr/listDivider" />
复制代码
纵向:
java代码:
<View android:layout_width="1dip"
android:layout_height="fill_parent"
android:background="?android:attr/listDivider" />
CheckBox
style="?android:attr/starStyle"
//类似标题栏效果的TextView
style="?android:attr/listSeparatorTextViewStyle"
//其它有用的样式
android:layout_height="?android:attr/listPreferredItemHeight"
android:paddingRight="?android:attr/scrollbarSize"
style="?android:attr/windowTitleBackgroundStyle"
style="?android:attr/windowTitleStyle"
android:layout_height="?android:attr/windowTitleSize"
android:background="?android:attr/windowBackground"
复制代码
View
,
字体
路漫漫其修远兮 吾将上下而求索
查看全文
相关阅读:
设置tableview的滚动范围--iOS开发系列---项目中成长的知识三
把所有界面的状态栏字体颜色设置为白色--iOS开发系列---项目中成长的知识一
iOS开发遇到的坑之四--图片命名不规范
使用Xcode连接开源中国
iOS使用技巧---高效使用你的xcode
修改mysql密码出现报错:ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corres
ubuntu 18.04 为 mysql 设置 root 初始密码
sudo: netstat:找不到命令的解决办法
xpath中的ends-with无效解决方案
python用selenium获取元素标签内容和属性值
原文地址:https://www.cnblogs.com/hudabing/p/3184027.html
最新文章
判断一个图是否有环
Asp.net的IP地址屏蔽功能设计
Hibernate 事件监听
使用BOOST BIND库提高C++程序性能
ASP.NET Web API标准的“管道式”设计
java day01第一课java简介
ARC 基础(下)
ARC 基础(上)
iOS开发 开发框架总结
[转]AVPlayer的基本使用
热门文章
【原】iOS 设计中 图片后期简单处理的完美组合
Objective-c 中 nil, Nil, NULL和NSNull的区别
ios 原生应用调用untiy 3D 模型_-->Add Unity3D in a native iOS application
下拉刷新,上拉加载更多
View controller-based status bar
ios开发--常用的高效开发的宏
iOS UIView中的坐标转换convertPoint --- iOS开发系列 ---项目中成长的知识六
iOS HmacSHA1加密 和 MD5 Base64加密 --iOS开发系列---项目中成长的知识五
iOS dateformatter设置GMT格式时间--iOS开发系列---项目中成长的知识四
当数据量很少的时候,tableview会显示多余的cell--iOS开发系列---项目中成长的知识二
Copyright © 2011-2022 走看看