登入介面
1 <?xml version="1.0" encoding="utf-8"?> 2 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 xmlns:tools="http://schemas.android.com/tools" 5 android:layout_width="match_parent" 6 android:layout_height="match_parent" 7 android:clipToPadding="false" 8 android:overScrollMode="never" 9 android:padding="@dimen/_24sdp" 10 android:scrollbars="none" 11 tools:context=".activities.SignInActivity"> 12 13 <LinearLayout 14 android:layout_width="match_parent" 15 android:layout_height="wrap_content" 16 android:gravity="center_horizontal" 17 android:orientation="vertical"> 18 <TextView 19 android:layout_width="wrap_content" 20 android:layout_height="wrap_content" 21 android:layout_marginTop="@dimen/_40sdp" 22 android:text="@string/welcome_back" 23 android:textColor="@color/primary_text" 24 android:textSize="@dimen/_18ssp" 25 android:textStyle="bold"/> 26 27 <TextView 28 android:layout_width="wrap_content" 29 android:layout_height="wrap_content" 30 android:layout_marginTop="@dimen/_4sdp" 31 android:text="@string/login_to_continue" 32 android:textColor="@color/secondary_text" 33 android:textSize="@dimen/_12ssp" 34 android:textStyle="bold"/> 35 36 <EditText 37 android:id="@+id/inputEmail" 38 android:layout_width="match_parent" 39 android:layout_height="@dimen/_45sdp" 40 android:layout_marginTop="@dimen/_40sdp" 41 android:background="@drawable/background_input" 42 android:hint="@string/email" 43 android:imeOptions="actionNext" 44 android:importantForAutofill="no" 45 android:inputType="textEmailAddress" 46 android:paddingStart="@dimen/_16sdp" 47 android:paddingEnd="@dimen/_16sdp" 48 android:textColor="@color/primary_text" 49 android:textSize="@dimen/_13ssp"/> 50 51 <EditText 52 android:id="@+id/inputPassword" 53 android:layout_width="match_parent" 54 android:layout_height="@dimen/_45sdp" 55 android:layout_marginTop="@dimen/_16sdp" 56 android:background="@drawable/background_input" 57 android:hint="@string/password" 58 android:imeOptions="actionDone" 59 android:importantForAutofill="no" 60 android:inputType="textPassword" 61 android:paddingStart="@dimen/_16sdp" 62 android:paddingEnd="@dimen/_16sdp" 63 android:textColor="@color/primary_text" 64 android:textSize="@dimen/_13ssp"/> 65 66 <FrameLayout 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content" 69 android:layout_marginTop="@dimen/_20sdp" 70 android:animateLayoutChanges="true"> 71 72 <com.google.android.material.button.MaterialButton 73 android:id="@+id/buttonSignIn" 74 android:layout_width="match_parent" 75 android:layout_height="@dimen/_50sdp" 76 android:text="@string/sign_in" 77 android:textColor="@color/white" 78 android:textSize="@dimen/_13ssp" 79 android:textStyle="bold" 80 app:cornerRadius="@dimen/_8sdp"/> 81 82 <ProgressBar 83 android:id="@+id/progressBar" 84 android:layout_width="@dimen/_25sdp" 85 android:layout_height="@dimen/_25sdp" 86 android:layout_gravity="center" 87 android:visibility="invisible"/> 88 89 </FrameLayout> 90 91 92 <TextView 93 android:id="@+id/textCreateNewAccount" 94 android:layout_width="wrap_content" 95 android:layout_height="wrap_content" 96 android:layout_marginTop="@dimen/_30sdp" 97 android:text="@string/create_new_account" 98 android:textColor="@color/primary" 99 android:textSize="@dimen/_13ssp" 100 android:textStyle="bold"/> 101 102 </LinearLayout> 103 104 </ScrollView>