Android用戶注冊界面
更新時間:2016年03月30日 11:40:54 作者:Dreamer_lwp
這篇文章主要介紹了Android用戶注冊界面 的相關資料,需要的朋友可以參考下
推薦閱讀:Android如何通過手機獲取驗證碼來完成注冊功能
先給大家展示下界面效果圖,感覺滿意,請參考實現代碼。

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歡迎提出,小編會及時和大家聯系,共同學習進步!
相關文章
Android使用PullToRefresh實現上拉加載和下拉刷新效果的代碼
這篇文章主要介紹了Android使用PullToRefresh實現上拉加載和下拉刷新效果 的相關資料,需要的朋友可以參考下2016-07-07
講解Android中的Widget及AppWidget小工具的創(chuàng)建實例
這篇文章主要介紹了講解Android中的Widget及Widget的創(chuàng)建實例,文中的例子展示了通過RemoteView來溝通AppWidgetProvider與AppWidgetHostView的方法,需要的朋友可以參考下2016-03-03
詳解Android自定義控件屬性TypedArray以及attrs
這篇文章主要為大家介紹了android自定義控件屬性TypedArray以及attrs,感興趣的小伙伴們可以參考一下2016-01-01
Flutter彈性布局Flex水平排列Row垂直排列Column使用示例
這篇文章主要為大家介紹了Flutter彈性布局Flex水平排列Row垂直排列Column使用示例詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪2023-08-08

