Android开发之EditText
来源:互联网 发布:手机卡iphone7在线软件 编辑:程序博客网 时间:2024/06/01 07:35
EditText字数限制的设置
editText.setFilters(new InputFilter[]{newInputFilter.LengthFilter(100)});
EditText设置字体
android:typeface=”monospace” 字形有:normal, sans, serif,monospace
Android EditText的一些属性
android:hint=”请输入数字!”//设置显示在空间上的提示信息
android:numeric=”integer”//设置只能输入整数,如果是小数则是:decimal
android:singleLine=”true”//设置单行输入,一旦设置为true,则文字不会自动换行。
android:password=”true”//设置只能输入密码
android:textColor = “#ff8c00”//字体颜色
android:textStyle=”bold”//字体,bold, italic, bolditalic
android:textSize=”20dip”//大小
android:capitalize = “characters”//以大写字母写
android:textAlign=”center”//EditText没有这个属性,但TextView有,居中
android:textColorHighlight=”#cccccc”//被选中文字的底色,默认为蓝色
android:textColorHint=”#ffff00”//设置提示信息文字的颜色,默认为灰色
android:textScaleX=”1.5”//控制字与字之间的间距
android:typeface=”monospace”//字型,normal, sans, serif, monospace android:background=”@null”//背景
作者:蒋尊科:原文地址
- Android开发之EditText
- Android开发之EditText
- android开发之EditText组件
- android开发之EditText的属性说明
- android开发之EditText的属性说明
- Android软件开发之EditText 详解
- Android软件开发之EditText 详解
- Android开发之EditText属性详解
- Android开发之EditText属性详解
- Android开发之EditText属性详解
- Android开发之EditText属性详解
- android开发之正则表达式(EditText)
- Android开发之EditText属性详解
- Android开发之EditText属性详解
- Android开发之EditText属性详解
- Android开发之EditText属性详解 .
- Android开发之EditText属性详解
- Android开发之EditText属性详解
- Codeforces Calculating Function
- Python基础概念_12_编程风格
- c++优先队列,小根堆
- java递归实现最大公约数和最小公倍数
- 使用jquery.qrcode生成二维码
- Android开发之EditText
- android属性动画分析
- 【Webservice】 Eclipse根据wsdl文件自动生成webservice的调用客户端
- 彻底理解webservice SOAP WSDL
- 欢迎使用CSDN-markdown编辑器
- ofbiz添加物品到购物车失败Could not find a valid price for the product with ID [XX-XXXX], not adding to cart.
- 关于帝国cms跳转手机模板代码
- android
- 如何把局域网内不同数据库的两个表的数据进行传输?