1. 程式人生 > >android UI註冊登入介面

android UI註冊登入介面

註冊

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:background="#0099ff" android:layout_width=
"match_parent"
android:layout_height="44dp" android:orientation="horizontal"> <ImageButton android:id="@+id/back3" android:layout_width="36dp" android:layout_height="30dp" android:background="@drawable/back" android:layout_gravity=
"center"/>
<TextView android:textColor="#ffffff" android:text="註冊" android:textSize="20dp" android:gravity="center" android:background="#0099ff" android:layout_width="match_parent" android:layout_height="match_parent"
/>
</LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingTop="16dp" android:paddingRight="16dp" android:paddingLeft="16dp"> <EditText android:id="@+id/phoneNumber" android:layout_width="match_parent" android:layout_height="50dp" android:hint="+86" android:maxLength="11" android:textColorHint="#0066ff" android:numeric="integer" android:background="@drawable/edit_shape"/> <LinearLayout android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"> <EditText android:id="@+id/yanZhengMaText" android:layout_width="fill_parent" android:layout_height="match_parent" android:layout_weight="1" android:background="@drawable/edit_shape" android:layout_marginRight="10dp" android:hint="驗證碼" android:numeric="integer" android:maxLength="6" android:textColorHint="#0066ff"/> <Button android:id="@+id/yanZhengMaButton" android:layout_width="fill_parent" android:layout_height="match_parent" android:layout_weight="1" android:background="@drawable/shape" android:text="獲取驗證碼" android:textColor="#ffffff" android:textSize="15dp"/> </LinearLayout> <EditText android:id="@+id/sheZhiMiMa" android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp" android:background="@drawable/edit_shape" android:hint="設定密碼" android:maxLength="16" android:textColorHint="#0066ff"/> <Button android:id="@+id/queRenZhuCeBtn" android:layout_marginTop="40dp" android:layout_width="match_parent" android:layout_height="44dp" android:background="@drawable/shape" android:text="註冊" android:textColor="#ffffff" android:textSize="15dp"/> </LinearLayout> </LinearLayout>登入 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context="com.example.administrator.myapplication.MainActivity"> <LinearLayout android:layout_width="match_parent" android:layout_height="60dp" android:orientation="horizontal"> <TextView android:textColor="#ffffff" android:text="登入" android:textSize="20dp" android:gravity="center" android:background="#0099ff" android:layout_width="match_parent" android:layout_height="44dp" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingLeft="16dp" android:paddingRight="16dp" android:paddingTop="16dp"> <EditText android:id="@+id/zhangHaoText" android:layout_width="match_parent" android:layout_height="50dp" android:hint="帳號" android:numeric="integer" android:textColorHint="#0066ff" android:maxLength="11" android:background="@drawable/edit_shape"/> <EditText android:id="@+id/miMaText" android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp" android:hint="密碼" android:maxLength="16" android:textColorHint="#0066ff" android:background="@drawable/edit_shape"/> <LinearLayout android:layout_width="match_parent" android:layout_height="50dp" android:layout_marginTop="10dp"> <Button android:id="@+id/zhuCeButton" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_weight="1" android:background="#0000" android:text="註冊" android:textColor="#0066ff" android:gravity="left|center"/> <Button android:id="@+id/wangJiMiMaButton" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_weight="1" android:background="#0000" android:text="忘記密碼" android:textColor="#0066ff" android:gravity="right|center"/> </LinearLayout> <Button android:id="@+id/dengLuButton" android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="44dp" android:text="登入" android:background="@drawable/shape" android:textColor="#ffffff" android:textSize="15dp"/> </LinearLayout> </LinearLayout> 原始碼

連結:http://pan.baidu.com/s/1bZyEya 密碼:thg1

歡迎加微信15599109256 進行討論

郵箱:[email protected]

可以加群220523801歡迎一起討論


相關推薦

android UI註冊登入介面

註冊 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:

Android編寫一個登入介面,利用資料庫實現記住密碼,註冊賬號,強制下線,以及類似QQ的下拉列表登入功能

        首先呢,看到這麼長的標題,是不是感覺這些功能有點難以實現呢,哈哈,其實並沒有想象中的那麼複雜,下面就跟著筆者來一起學習一下這些功能是怎麼實現的吧!         1.建立一個所有活動的父類,繼承自A

簡單的SSS框架整合(簡單的註冊登入介面

1、建立一個maven專案 2、pom.xml匯入依賴jar包(這裡需要注意的是jar包的完整性,不然會報錯) Junit,spring-test:用於單元測試(不測試可以不加);spring-data-jpa(1.11.3);spring-webmvc(4.3

android -簡單註冊登入頁面應用

小白今天寫了一段註冊登入程式碼與大家分享不足請指出 首先寫一個javabean package com.my.domain; public class User {private String account;//賬號private String password;//密碼

Android UI設計---計算器介面的設計心得

廢話不多說,先上圖很醜的頁面,不過正好將所學的線性佈局進行了實戰使用以下是我的心得:此設計使用了“線性佈局”的套用整體是“縱向”線性佈局部分是“橫向”線性佈局整體“線性佈局”使用了   寬:充滿父視窗長:充滿父視窗縱向佈局部分“線性佈局”使用了寬:充滿父視窗高:使用自定義高度

Android 模仿QQ登入介面解決軟鍵盤遮擋問題

Android 軟體盤彈出可能會遮擋住介面上的某些控制元件。當 windowSoftInputMode 為 adjustPan 時,一般不會擋住 EditText,但是假如 EditText 下面是一個登入按鈕,那麼這個按鈕就可能被擋住,但有時我們希望使用者輸完

27個漂亮的移動端註冊/登入介面設計作品

英文:medium 作者:Muzli 譯者:設計達人 連結:http://www.shejidaren.com/login-ui-for-mobile-apps.html 註冊/登入介面是網站或APP常用的小元件之一,功能雖少,但卻是很重要的使用者登入、註冊入口,為了讓

android app從登入介面進入主頁,按home鍵回桌面再進入app,重新彈出登入介面的問題解決

在登入介面onCreate方法中,新增以下判斷程式碼即可: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Android 簡單EventBus登入介面與傳值(粘性事件)

展示效果 新增EventBus匯入依賴 compile 'org.greenrobot:eventbus:3.0.0'11 主MainActivity方法 public classMainAc

android+簡單的登入介面+OKhttp請求

builder gradle中加: compile 'com.android.support.constraint:constraint-layout:1.0.2'     compile 'com.squareup.okio:okio:1.5.0'     compile

Android--使用顯式Intent,實現從登入介面註冊介面的跳轉

//Activity_abaka.xml --------------註冊介面 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://sch

Android開發,登入註冊介面中如何新增視訊背景,親測可用

此篇文章屬個人查閱資料整理所著,希望能對您有所幫助,歡迎各位留言指正,抱拳了 一、 首先在res資料夾下新增raw資料夾並將要新增的背景視訊放進去; 二、在MyViewpager.java(此為要顯示的活動檔案)中的onCreate()中新增視訊的程式碼 //設定視訊背景

Android設計登入介面、找回密碼、註冊功能

這篇文章主要為大家詳細介紹了Android設計登入介面的方法,Android實現找回密碼、註冊功能,感興趣的小夥伴們可以參考一下 1.資料庫的設計 我在資料庫中添加了兩張表,一張表用來儲存使用者資訊,諸如使用者名稱,密碼,手機號等,可任意新增。另一張表用來儲存上一個登入使

android ui登入介面

  登入介面 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tool

Android UI開發第十五篇——分享一個登入緩衝介面

      今天在網上發現了一個很漂亮的緩衝介面,在這裡分享一下。主要還是用的android Anim。java code:public class Main extends Activity { private Animation anm; private int ma

android 註冊成功後返回賬號和密碼到登入介面,精闢講解

注意:當 註冊頁面 啟動模式=singTask, startActivityForResult 會直接呼叫onActivityResult ,* 在RegisterActivity -setResult -finish 後,不再呼叫onActivityResult;* 解決辦法:1,更改 註冊頁面 lanch

移動端UI介面設計之-註冊登入

註冊登入是移動端UI介面設計中最基礎的板塊之一,介面看似簡單,但是想設計一個讓人眼前一亮的註冊登入介面並非易事。今天,小編將和大家一起來聊聊移動端UI介面設計之-登入註冊那些事。希望能對設計的朋友有所幫助。本文架構:常見註冊方式常見登入方式精美註冊登入設計介面模板設計工具推薦

Android 開發:(三)安卓常用控制元件以及仿《微門戶》登入介面實現

一、常用控制元件: 1、文字類控制元件 TextView 負責展示文字,非編輯 EditText 可編輯文字控制元件 2、按鈕類控制元件 Button 按鈕 ImageButton 圖片按鈕 RadioButton與RadioGroup 單

android 設計比較美觀的登入介面

登入介面的展示效果大概如此   一、編寫activity_main.xml檔案。程式碼如下: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.

Android開發:使用者註冊登入模組(客戶端+服務端)

1. 前言: 為了方便,將註冊頁面和登入頁面也在一塊。演示: 2.資料庫搭建:MySQL create database test; use test; create table user( user_id int primary key auto_