Android高级UI ImageView ImageButton RadioButton CheckBox ProgressBar属性和用法总结
来源:互联网 发布:intelj java.util.map 编辑:程序博客网 时间:2024/04/30 09:55
高级UI
ImageView ImageButton RadioButton CheckBox ProgressBar
1.ImageView 图片组件
src 指定要加载的图片
缩放问题
1.按着图片原始比例(不失真)
2.不按着比例(失真)
ScaleType
1.fitXY 强制让图片缩放以填充整个imageview
2.fitCenter 按着比例缩放以居中显示图片
3.fitEnd 按着比例缩放以局下部显示图片
4.fitStart 按着比例缩放以居上部显示图片
adjustViewBounds 图片边界和imageview边界契合
23code
2.ImageButton(没人用)
继承ImageView 属性都可以用
3.ProgressBar 进度条
样式:旋转进度条(不显示进度) 水平进度条(显示)
style 控制样式
1.@android:style/Widget.ProgressBar.Inverse 旋转
2.@android:style/Widget.ProgressBar.Horizontal 水平
3.max 水平进度条 总的进度值
4.progress 水平进度条 当前进度值
5.secondaryProgress 水平进度条 当前二级进度值
4.RadioButton(选项)
RadioGroup(单选框)
<RadioGroup >
<RadiButton />
<RadiButton />
<RadiButton />
</RadioGroup>
1.radiobutton
1.text 单选按钮旁边的提示文字
2.checked 默认情况是否选中
3.style 切换样式
@android:style/Widget.Holo.CompoundButton.CheckBox 方框选择
@android:style/Widget.Holo.CompoundButton.RadioButton圆圈(默认)
ImageView ImageButton RadioButton CheckBox ProgressBar
1.ImageView 图片组件
src 指定要加载的图片
缩放问题
1.按着图片原始比例(不失真)
2.不按着比例(失真)
ScaleType
1.fitXY 强制让图片缩放以填充整个imageview
2.fitCenter 按着比例缩放以居中显示图片
3.fitEnd 按着比例缩放以局下部显示图片
4.fitStart 按着比例缩放以居上部显示图片
adjustViewBounds 图片边界和imageview边界契合
23code
2.ImageButton(没人用)
继承ImageView 属性都可以用
3.ProgressBar 进度条
样式:旋转进度条(不显示进度) 水平进度条(显示)
style 控制样式
1.@android:style/Widget.ProgressBar.Inverse 旋转
2.@android:style/Widget.ProgressBar.Horizontal 水平
3.max 水平进度条 总的进度值
4.progress 水平进度条 当前进度值
5.secondaryProgress 水平进度条 当前二级进度值
4.RadioButton(选项)
RadioGroup(单选框)
<RadioGroup >
<RadiButton />
<RadiButton />
<RadiButton />
</RadioGroup>
1.radiobutton
1.text 单选按钮旁边的提示文字
2.checked 默认情况是否选中
3.style 切换样式
@android:style/Widget.Holo.CompoundButton.CheckBox 方框选择
@android:style/Widget.Holo.CompoundButton.RadioButton圆圈(默认)
@android:style/Widget.Holo.CompoundButton.Star 五角星
0 0
- Android高级UI ImageView ImageButton RadioButton CheckBox ProgressBar属性和用法总结
- RadioButton、CheckBox和ImageView
- 系出名门Android(5) - 控件(View)之TextView, Button, ImageButton, ImageView, CheckBox, RadioButton, AnalogClock, DigitalClock
- Android - 控件(View)之TextView, Button, ImageButton, ImageView, CheckBox, RadioButton, AnalogClock, DigitalClock 的简单介绍
- 系出名门Android(5) - 控件(View)之TextView, Button, ImageButton, ImageView, CheckBox, RadioButton, AnalogClock, DigitalClock
- UI控件--ImageView和ImageButton
- Android UI设计——ImageView和ImageButton控件
- Android UI 设计——ImageView 和 ImageButton 控件
- Android UI(ImageView CheckBox)、ListView和Adapter
- Android中ImageView和ImageButton
- Android中的ImageView和ImageButton
- Android02--Android之UI控件ImageView+ImageButton
- android常用控件------checkBox RadioButton ImageView Spinner
- Android CheckBox和RadioButton
- 【幻化万千戏红尘】qianfeng-Android-Day03-RadioButton及RadioGroup的用法、CheckBox、ProgressBar基础学习:
- Android-UI组件- RadioButton、CheckBox、 Spinner和ListView
- Android UI学习笔记 之RadioButton和CheckBox的使用
- Android UI之选择器-ToggleButton、Switch、CheckBox和RadioButton
- iOS开发(Swift):创建UINavigationView的三种方法
- Python3批量转换文本文件编码
- 数据结构实验之链表二:逆序建立链表
- DFS之素数环
- 数据结构实验之链表三:链表的逆置
- Android高级UI ImageView ImageButton RadioButton CheckBox ProgressBar属性和用法总结
- Python 对文件进行编码转换
- 学习鸟哥的Linux私房菜笔记(5)——目录
- 触摸事件和手势(UITouch)
- centos7 快速安装 mariadb(mysql)
- Python 定义源码编码 (Source Encoding)
- 学习鸟哥的Linux私房菜笔记(6)——过滤器、输入输出及管道
- ubuntu14.04安装DevStack与遇到的的问题记录
- 用find/find-all match方式查找list元素