Button,RadioButton,Time
来源:互联网 发布:国外域名代理商 编辑:程序博客网 时间:2024/06/07 04:37
1. Button
text:在按钮上设文字。ImageButton:不能有文字
background:设置按钮颜色
2.ImageButton:图片按钮。
src:设置背景图片
adjustViewBounds:调整图片大小
padding:图片填充
3. 9.png
作用:解决图片变形。
在安装的Android的sdk/tools/draw9patch.bat
上边线:左右拉伸,只拉伸区域
左边线:上下拉伸,只拉伸区域
下边线:表示横向内容的区域
右边线:表示纵向内容的区域
4.事件处理:
1. onClick="name"
对应Activity中有public void name(View view){ }
2. 监听器:可以使用内部类。也可使用外部类
btn.setOnClickListener(new View.OnClickListener(){ } )
若同时使用,xml配置无用
5. RadioGroup:设置id。RadioButton必须放到里面
checked:选中
6.DatePicker:
calendarViewShown="false"---不显示页面
datePicker.getYear();-----------年份
datePicker.getMonth();------------月份
datePicker.getDayOfMonth()-------天数
事件:
吐司面包的设置
- Button,RadioButton,Time
- ImageView、RadioGroup、RadioButton、button
- 用button模仿radiobutton布局
- radioGroup动态加载radiobutton且radiobutton没有button圆圈按钮
- Button的使用(七):RadioGroup、RadioButton
- MFC Radio Button 使用 分组 RadioButton 用法
- MFC Radio Button 使用 分组 RadioButton 用法
- MFC Radio Button 使用 分组 RadioButton 用法
- MFC Radio Button 使用 分组 RadioButton 用法
- MFC Radio Button 使用 分组 RadioButton 用法
- MFC Radio Button 使用 分组 RadioButton 用法
- MFC Radio Button 使用 分组 RadioButton 用法
- 2015/8/21/Button/RadioButton与RadioGroup
- EditText,TextView(富文件),Button,RadioButton
- MFC Radio Button 使用 分组 RadioButton 用法
- MFC Radio Button 使用 分组 RadioButton 用法
- Python--Tkinter之 Button()/Checkbutton()/Radiobutton()
- MFC Radio Button 使用 分组 RadioButton 用法
- 写博客啦~~
- intellij IDEA常用快捷键整理
- How to Edit Your Hosts File on Windows
- ThoughtWorks 结对编程
- linux平台下防火墙iptables原理
- Button,RadioButton,Time
- bootstrap02栅格系统
- 【MySql】-Windows下mysql的配置与连接
- pickle的用法
- Android控件——RadioGroup/RadioButton定义及监听
- Hadoop NameNode 高可用 (High Availability) 实现解析
- 两个容器中的数据合并
- JavaScript基础知识总结
- linux 不常用命令及命令组合