android:hint="请输入数字!"   //设置显是在控件上的提示信息

   android:numeric="integer"   //设置只能输入整数,如果是小数则是:decimal

   android:singleLine="true"   //设置单行输入,一旦设置为true,则文字不会自动换行。

   android:password="true"   //设置只能输密码

   android:textColor="#ff8c00"   //字体颜色

   android:textStyle="bold"   //字体,bold,italic,bolditalic

   android:textSize="20sp"   //大小

   android:capitalize="characters"   //以大写字母写

   android:textColorHighlight="#cccccc"    //被选中文字的底色,默认为蓝色

   android:textColorHint="#ffff00"    //设置提示信息文字的颜色,默认为灰色

   android:textScaleX="1.5"   //控制字与字之间的间距

   android:typeface="monospace"   //字型,normal, sans, serif, monospace

   android:layout_weight="1"   //权重,控制控件之间的地位,在控制控件显示的大小时很有用的

   android:layout_gravity="center_vertical"   //设置控件显示的位置:默认 top,这里居中显示,还有 bottom

   android:gray="top" //多行中指针在第一行第一位置

   android:autoText   //自动拼写帮助

   android:digits   //设置只接受某些数字

   android:singleLine   //是否单行或者多行,回车是离开文本框还是文本框增加新行

   android:numeric   //只接受数字

   android:phoneNumber   //输入电话号码

   android:editable   //是否可编辑

   android:autoLink ="all"   //设置文本超链接样式当点击网址时,跳向该网址

更多相关文章

  1. 【Android开发学习27】界面控件之进度条(ProgressBar)
  2. ArcGIS for Android地图控件的5大常见操作
  3. TextView 控件使用
  4. Andrid 控件集合大全
  5. 系出名门Android(5) - 控件(View)之TextView, Button, ImageButt
  6. android限制输入框长度与限制输入数字
  7. Android ImageView控件的setMaxWidth、setMaxHeight不起作用

随机推荐

  1. Android(安卓)trouble shooting 整理
  2. Android.os.NetworkOnMainThreadExceptio
  3. Android(安卓)判断app是否在前台运行
  4. Glide使用方法汇总
  5. android实现猜扑克牌小游戏(改进:每次只可
  6. Android(安卓)ProgressDialog的使用
  7. Android给ListView设置分割线Divider样式
  8. Android关机AppWidget的实现
  9. GreenDao
  10. Android之反编译