Recommended reading: How Android can get a captcha from a phone to complete the registration function
First show you the next interface effect diagram, feel satisfied, please refer to the implementation code.
Main.xml Source
<?xml version= "1.0" encoding= "Utf-8"?> <tablelayout xmlns:android= "http://schemas.android.com/apk/res/"
Android "Android:layout_width=" Match_parent "android:layout_height=" Match_parent "android:stretchcolumns=" 1 " android:background= "@drawable/bluesky" > <!--account--> <TableRow> <textview android:layout_width= "
Match_parent "android:layout_height=" wrap_content "android:text=" account: "android:textsize=" 16sp "/> <EditText Android:layout_width= "Match_parent" android:layout_height= "Wrap_content" android:hint= "mobile number" Android: Selectallonfocus= "true"/> </TableRow> <!--password--> <TableRow> <textview android:layout_width= "
Match_parent "android:layout_height=" wrap_content "android:text=" Password: "android:textsize=" 16sp "/> <EditText
Android:layout_width= "Match_parent" android:layout_height= "wrap_content" android:inputtype= "NumberPassword"/> </TableRow> <!--birthday--> <TableRow> <textview android:layout_width= "Match_parent" Android:layout_height= "Wrap_content" android:text= "Birthday:" android:textsize= 16sp "/> <edittext android:layout_width= "Match_parent" android:layout_height= "wrap_content" android:inputtype= "date"/> </TableRow> <!--address > <TableRow> <textview android:layout_width= "match_parent" android:layout_height= "Wrap_content" Android : text= "Address: android:textsize=" 16sp "/> <edittext android:layout_width=" match_parent "android:layout_height=" Wrap_content "android:inputtype=" textpostaladdress "/> </TableRow> <!--e-mail--> <TableRow> < TextView android:layout_width= "match_parent" android:layout_height= "wrap_content" e-mail: "Android: Textsize= "16sp"/> <edittext android:layout_width= "match_parent" android:layout_height= "Wrap_content" Android : inputtype= "textemailaddress"/> </TableRow> <!--registration--> <TableRow> <button android:layout_ Width= "Match_parent" android:layout_height= "wrap_content" android:text= "register"/> </tablerow> </TableLayout>
To this about the Android user registration interface of all the code will be introduced to you, the code has bugs welcome to put forward, small series will be timely and everyone to contact, learn and progress together!