先给大家展示下界面效果图,感觉满意,请参考实现代码。
Main.xml源码
android:layout_width="match_parent"
android:layout_height="match_parent"
android:stretchColumns="1"
android:background="@drawable/bluesky"
>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="账号:"
android:textSize="16sp"
/>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="手机号"
android:selectAllOnFocus="true"
/>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="密码:"
android:textSize="16sp"
/>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="numberPassword"
/>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="生日:"
android:textSize="16sp"
/>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="date"
/>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="住址:"
android:textSize="16sp"
/>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPostalAddress"
/>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="电子邮箱:"
android:textSize="16sp"
/>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
/>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="注册"
/>
到此关于Android用户注册界面的全部代码就给大家介绍完了,代码有bug欢迎提出,小编会及时和大家联系,共同学习进步!