EditTex属性

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
   android:orientation="vertical"
    tools:context=".MainActivity" >
  
   <EditText
       android:layout_marginTop="200dp"
       android:hint="keyboard"
       android:textColorHint="@android:color/holo_purple"//会有非常好看的提示颜色
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:singleLine="true"
       android:password="true"//输入限制为密码
       ></EditText>
   <EditText
       android:digits="123"//输入限制为数字
  
       android:layout_width="match_parent"
       android:layout_height="100dp"/>
   <EditText
        android:phoneNumber="true"//输入限制为电话号码
       android:layout_width="match_parent"
       android:layout_height="100dp"/>
<EditText
    android:textScaleX="1.05"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    ></EditText>
<EditText
    android:background="@null"//背景为空没有那个下划线我们能够制作好看的文本框
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    ></EditText>
<EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:textAppearance="?

android:attr/textAppearanceLargeInverse"//不出现键盘
    >
</EditText>
</LinearLayout>

posted @ 2016-01-14 15:10  lcchuguo  阅读(249)  评论(0编辑  收藏  举报