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>
到此關(guān)于Android用戶注冊界面的全部代碼就給大家介紹完了,代碼有bug歡迎提出,小編會及時和大家聯(lián)系,共同學(xué)習(xí)進步!
相關(guān)文章
Android Service開發(fā)應(yīng)用實例
Android的服務(wù)是開發(fā)Android應(yīng)用程序的重要組成部分。不同于活動Activity,服務(wù)是在后臺運行,服務(wù)沒有接口,生命周期也與活動Activity非常不同。通過使用服務(wù)我們可以實現(xiàn)一些后臺操作,比如想從遠程服務(wù)器加載一個網(wǎng)頁等,下面來看看詳細內(nèi)容,需要的朋友可以參考下2022-12-12關(guān)于Android高德地圖的簡單開發(fā)實例代碼(DEMO)
高德地圖在日常生活中經(jīng)常會用到,那么基于代碼如何實現(xiàn)高德地圖呢?下面小編給大家分享一個demo幫助大家學(xué)習(xí)android高德地圖的簡單開發(fā),需要的朋友參考下2016-11-11Android Http協(xié)議訪問網(wǎng)絡(luò)實例(3種)
本篇文章主要介紹了Android Http協(xié)議訪問網(wǎng)絡(luò)實例(3種),具有一定的參考價值,有興趣的可以了解一下2017-07-07Android編程實現(xiàn)橫豎屏切換時不銷毀當(dāng)前activity和鎖定屏幕的方法
這篇文章主要介紹了Android編程實現(xiàn)橫豎屏切換時不銷毀當(dāng)前activity和鎖定屏幕的方法,涉及Android屬性設(shè)置及activity操作的相關(guān)技巧,需要的朋友可以參考下2015-11-11Android M(6.x)使用OkHttp包解析和發(fā)送JSON請求的教程
Android 6.0采用的SPDY支持HTTP上GZIP壓縮的傳輸,這使得OkHttp包的功能能夠進一步被利用,本文我們來總結(jié)一下Android M(6.0)使用OkHttp包解析和發(fā)送JSON請求的教程2016-07-07在Android環(huán)境下WebView中攔截所有請求并替換URL示例詳解
這篇文章主要介紹了在Android環(huán)境下WebView中攔截所有請求并替換URL示例詳解,文中通過示例代碼介紹的非常詳細,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2020-07-07