<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="用户名:"
android:textSize="16sp"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请填写登录帐号"
android:selectAllOnFocus="true"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="密码:"
android:textSize="16sp"
/>
<!--只接受数字密码-->
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="numberPassword"
android:hint="请输入密码"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="电话号码"
/>
<!--只接受数字输入-->
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="输入电话号码"
android:inputType="number"
/>
<!--日期输入-->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="生日"
/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="输入日期"
android:inputType="date"
/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="注册"
/>
android:EditText备忘
最新推荐文章于 2022-07-02 21:30:37 发布