Android用戶注冊界面
更新時間:2016年03月30日 11:40:54 作者:Dreamer_lwp
這篇文章主要介紹了Android用戶注冊界面 的相關資料,需要的朋友可以參考下
推薦閱讀:Android如何通過手機獲取驗證碼來完成注冊功能
先給大家展示下界面效果圖,感覺滿意,請參考實現(xiàn)代碼。
Main.xml源碼
<?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" > <!-- 賬號 --> <TableRow> <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" /> </TableRow> <!-- 密碼 --> <TableRow> <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" /> </TableRow> <!-- 生日 --> <TableRow> <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="date" /> </TableRow> <!-- 住址 --> <TableRow> <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="textPostalAddress" /> </TableRow> <!-- 電子郵箱 --> <TableRow> <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="textEmailAddress" /> </TableRow> <!-- 注冊 --> <TableRow> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:text="注冊" /> </TableRow> </TableLayout>
到此關于Android用戶注冊界面的全部代碼就給大家介紹完了,代碼有bug歡迎提出,小編會及時和大家聯(lián)系,共同學習進步!
相關文章
關于Android高德地圖的簡單開發(fā)實例代碼(DEMO)
高德地圖在日常生活中經常會用到,那么基于代碼如何實現(xiàn)高德地圖呢?下面小編給大家分享一個demo幫助大家學習android高德地圖的簡單開發(fā),需要的朋友參考下2016-11-11Android編程實現(xiàn)橫豎屏切換時不銷毀當前activity和鎖定屏幕的方法
這篇文章主要介紹了Android編程實現(xiàn)橫豎屏切換時不銷毀當前activity和鎖定屏幕的方法,涉及Android屬性設置及activity操作的相關技巧,需要的朋友可以參考下2015-11-11Android M(6.x)使用OkHttp包解析和發(fā)送JSON請求的教程
Android 6.0采用的SPDY支持HTTP上GZIP壓縮的傳輸,這使得OkHttp包的功能能夠進一步被利用,本文我們來總結一下Android M(6.0)使用OkHttp包解析和發(fā)送JSON請求的教程2016-07-07在Android環(huán)境下WebView中攔截所有請求并替換URL示例詳解
這篇文章主要介紹了在Android環(huán)境下WebView中攔截所有請求并替換URL示例詳解,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧2020-07-07