<EditText
android:id="@+id/etext_phone"
android:layout_width="match_parent"
android:layout_height="40dp"
android:cursorVisible="true"
android:textCursorDrawable="@null"
android:background="@null"
android:drawableLeft="@drawable/icon_phone"
android:drawablePadding="12dp"
android:focusable="true"
android:hint="手机号码"
android:inputType="phone"
android:maxLength="11"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:textColor="@color/text_normal"
android:textSize="12sp"
android:id="@+id/etext_phone"
android:layout_width="match_parent"
android:layout_height="40dp"
android:cursorVisible="true"
android:textCursorDrawable="@null"
android:background="@null"
android:drawableLeft="@drawable/icon_phone"
android:drawablePadding="12dp"
android:focusable="true"
android:hint="手机号码"
android:inputType="phone"
android:maxLength="11"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:textColor="@color/text_normal"
android:textSize="12sp"
/>
说明:android:cursorVisible="true" android:textCursorDrawable="@null" //这两句是为了让光标显示出来。
android:background="@null" // 隐藏默认的编辑下边的横线