The login page is basically made up of two parts, part of a slightly whitish login box, and a light blue background. This is actually a layout that presents the effect of a layout. That is, a activity_login.xml file is wrapped around a login_top.xml file (using <include/> tags).
Pages such as:
Login_top.xml
1<?xml version="1.0"encoding="Utf-8"?>2<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" 3Android:layout_width="match_parent" 4android:layout_height="wrap_content" 5Android:paddingbottom="@dimen/activity_vertical_margin" 6android:paddingleft="@dimen/activity_horizontal_margin" 7android:paddingright="@dimen/activity_horizontal_margin" 8android:paddingtop="@dimen/activity_vertical_margin" 9Android:background="@drawable/logintopbg_roundcorner" Ten> One A<EditText -Android:id="@+id/etname" -Android:layout_width="match_parent" theandroid:layout_height="wrap_content" -android:layout_alignparentleft="true" -android:layout_alignparenttop="true" -Android:background="@android:d Rawable/edit_text" +android:drawableleft="@drawable/etname" -android:drawablepadding="10DP" +android:ems="Ten" AAndroid:hint="@string/etname"> at</EditText> - -<EditText -Android:id="@+id/etpassword" -Android:layout_width="match_parent" -android:layout_height="wrap_content" inandroid:layout_alignleft="@+id/etname" -android:layout_below="@+id/etname" toAndroid:background="@android:d Rawable/edit_text" +android:drawableleft="@drawable/etpassword" -android:drawablepadding="10DP" theandroid:layout_margintop="20DP" *android:ems="Ten" $Android:hint="@string/etpassword" Panax NotoginsengAndroid:inputtype="Textpassword" -/> the +<LinearLayout AAndroid:layout_width="match_parent" theandroid:layout_height="wrap_content" +android:layout_alignleft="@+id/etpassword" -android:layout_below="@+id/etpassword" $android:layout_margintop="5DP" $> - -<Button theAndroid:id="@+id/btnlogin" -Android:layout_width="wrap_content" Wuyiandroid:layout_height="wrap_content" theandroid:text="@string/btnlogin" -Android:background="@drawable/btn_select" Wuandroid:layout_weight="1"/> - About<Button $Android:id="@+id/btnregist" -Android:layout_width="wrap_content" -android:layout_height="wrap_content" -android:text="@string/btnregist2" AAndroid:background="@drawable/btn_select" +android:layout_weight="1" theandroid:layout_marginleft="5DP" -/> $ the</LinearLayout> the the<p style="font-size:18px;"></RelativeLayout></p>
Activity_login.xml
1<span style="font-size:24px;"><relativelayout xmlns:android="http://schemas.android.com/apk/res/android" 2xmlns:tools="Http://schemas.android.com/tools" 3Android:layout_width="match_parent" 4android:layout_height="match_parent" 5Android:background="@color/lightblue" 6Android:paddingbottom="@dimen/activity_vertical_margin" 7android:paddingleft="@dimen/activity_horizontal_margin" 8android:paddingright="@dimen/activity_horizontal_margin" 9android:paddingtop="@dimen/activity_vertical_margin" Tentools:context=". Loginactivity"> One<include android:id="@+id/ic1" Alayout="@layout/login_top1"/> - - the -<TextView -Android:id="@+id/tvforgetpass" -Android:layout_width="wrap_content" +android:layout_height="wrap_content" -android:layout_alignright="@id/ic1" +android:layout_below="@+id/ic1" Aandroid:layout_margintop="32DP" atandroid:layout_marginright="16DP" -android:text="@string/tvforgetpass" -Android:textappearance="? Android:attr/textappearancebutton" -/> -</span><span style="font-size:18px;"> -</span><span style="font-size:18px;"><ImageView inAndroid:id="@+id/iv" -Android:layout_width="wrap_content" toandroid:layout_height="wrap_content" +Android:layout_alignparentbottom="true" -android:layout_below="@+id/tvforgetpass" theandroid:layout_alignright="@+id/ic1" *Android:layout_marginbottom="20DP" $Android:src="@drawable/monkey"/>Panax Notoginseng -</RelativeLayout></span>
Implementation of Walker Login interface