android studio常用控件
来源:互联网 发布:在淘宝当主播怎么赚钱 编辑:程序博客网 时间:2024/06/18 13:02
android studio这个软件越用越顺手,里面也有很多的功能。现在我给大家分享一下里面的几个控件及一些运用
1. TextView 文本框:
autoLink="all" 自动超链接
lines 默认占几行
textStyle 字体加粗或变斜
elliPsize 里面有一个marquee值可以做走马灯
(以下三个配合elliPsize使用)
focusable="true"
focusableInTouchMode="true"
clickable="true"
drawablexx 图标 xx是上下左右英文
2.EditText 输入框
hint 提示
inoutType 只能输入(数字,字母.....)
3.shape 外形
shape="rectangle" 矩形
stroke 设置边框粗细
padding 内间距
corners 设置四角弧度
solid 单颜色填充
gradient 渐变色但最多只能设置三种颜色
4. _____selector 选择器 下划线自己定义
item 例如
<item android:drawable="@drawable/et_shape" android:state_focused="false"></item><item android:drawable="@drawable/et_shape1" android:state_focused="true"></item>
- android studio常用控件
- android studio 控件常用属性
- android studio spinner控件
- Android Studio常用快捷键
- Android studio常用快捷键
- Android Studio常用设置
- Android studio常用知识
- Android Studio常用快捷键
- Android Studio 常用快捷键
- android studio 常用快捷键
- android studio 常用快捷键
- Android Studio常用快捷键
- Android Studio常用快捷键
- Android Studio常用快捷键
- Android Studio常用快捷键
- Android Studio 常用快捷键
- Android Studio常用快捷键
- Android Studio常用快捷键
- npm link的基本用法及实例
- Java实现MySQL图片存取
- 设计模式之六大原则
- POJ3669 Meteor Shower (BFS)
- 高中OJ3505. 【NOIP2013模拟11.4A组】积木(brick)
- android studio常用控件
- 3.机器学习概论(1)--统计学习三大要素
- Services服务
- 关于MySQL中存储时间格式的问题
- UVA 156 Ananagrams(map、set)
- iOS
- @Autowired与@Resource的区别
- python操作mysql
- 百度网盘分享链接无效