結對作業衝刺2

新晋软工小白發表於2024-06-11

實現註冊介面

  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.SignUpActivity">
 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 
 19         <TextView
 20             android:layout_width="wrap_content"
 21             android:layout_height="wrap_content"
 22             android:layout_marginTop="@dimen/_20sdp"
 23             android:text="@string/create_new_account"
 24             android:textColor="@color/primary_text"
 25             android:textSize="@dimen/_18ssp"
 26             android:textStyle="bold"/>
 27 
 28         <FrameLayout
 29             android:id="@+id/layoutImage"
 30             android:layout_width="wrap_content"
 31             android:layout_height="wrap_content"
 32             android:layout_marginTop="@dimen/_20sdp">
 33 
 34             <com.makeramen.roundedimageview.RoundedImageView
 35                 android:id="@+id/imageProfile"
 36                 android:layout_width="@dimen/_80sdp"
 37                 android:layout_height="@dimen/_80sdp"
 38                 android:background="@drawable/background_image"
 39                 android:scaleType="centerCrop"
 40                 app:riv_oval="true" />
 41 
 42             <TextView
 43                 android:id="@+id/textAddImage"
 44                 android:layout_width="wrap_content"
 45                 android:layout_height="wrap_content"
 46                 android:layout_gravity="center"
 47                 android:text="@string/add_image"
 48                 android:textColor="@color/secondary_text"
 49                 android:textSize="@dimen/_10ssp" />
 50 
 51         </FrameLayout>
 52 
 53         <EditText
 54             android:id="@+id/inputName"
 55             android:layout_width="match_parent"
 56             android:layout_height="@dimen/_45sdp"
 57             android:layout_marginTop="@dimen/_20sdp"
 58             android:background="@drawable/background_input"
 59             android:hint="@string/name"
 60             android:imeOptions="actionNext"
 61             android:importantForAutofill="no"
 62             android:inputType="text"
 63             android:paddingStart="@dimen/_16sdp"
 64             android:paddingEnd="@dimen/_16sdp"
 65             android:textColor="@color/primary_text"
 66             android:textSize="@dimen/_13ssp"/>
 67 
 68         <EditText
 69             android:id="@+id/inputEmail"
 70             android:layout_width="match_parent"
 71             android:layout_height="@dimen/_45sdp"
 72             android:layout_marginTop="@dimen/_16sdp"
 73             android:background="@drawable/background_input"
 74             android:hint="@string/email"
 75             android:imeOptions="actionNext"
 76             android:importantForAutofill="no"
 77             android:inputType="textEmailAddress"
 78             android:paddingStart="@dimen/_16sdp"
 79             android:paddingEnd="@dimen/_16sdp"
 80             android:textColor="@color/primary_text"
 81             android:textSize="@dimen/_13ssp"/>
 82 
 83         <EditText
 84             android:id="@+id/inputPassword"
 85             android:layout_width="match_parent"
 86             android:layout_height="@dimen/_45sdp"
 87             android:layout_marginTop="@dimen/_16sdp"
 88             android:background="@drawable/background_input"
 89             android:hint="@string/password"
 90             android:imeOptions="actionNext"
 91             android:importantForAutofill="no"
 92             android:inputType="textPassword"
 93             android:paddingStart="@dimen/_16sdp"
 94             android:paddingEnd="@dimen/_16sdp"
 95             android:textColor="@color/primary_text"
 96             android:textSize="@dimen/_13ssp"/>
 97 
 98         <EditText
 99             android:id="@+id/inputConfirmPassword"
100             android:layout_width="match_parent"
101             android:layout_height="@dimen/_45sdp"
102             android:layout_marginTop="@dimen/_16sdp"
103             android:background="@drawable/background_input"
104             android:hint="@string/confirm_password"
105             android:imeOptions="actionDone"
106             android:importantForAutofill="no"
107             android:inputType="textPassword"
108             android:paddingStart="@dimen/_16sdp"
109             android:paddingEnd="@dimen/_16sdp"
110             android:textColor="@color/primary_text"
111             android:textSize="@dimen/_13ssp"/>
112 
113         <FrameLayout
114             android:layout_width="match_parent"
115             android:layout_height="wrap_content"
116             android:layout_marginTop="@dimen/_16sdp"
117             android:animateLayoutChanges="true">
118 
119             <com.google.android.material.button.MaterialButton
120                 android:id="@+id/buttonSignUp"
121                 android:layout_width="match_parent"
122                 android:layout_height="@dimen/_50sdp"
123                 android:text="@string/sign_up"
124                 android:textColor="@color/white"
125                 android:textSize="@dimen/_13ssp"
126                 android:textStyle="bold"
127                 app:cornerRadius="@dimen/_8sdp"/>
128 
129             <ProgressBar
130                 android:id="@+id/progressBar"
131                 android:layout_width="@dimen/_25sdp"
132                 android:layout_height="@dimen/_25sdp"
133                 android:layout_gravity="center"
134                 android:visibility="invisible"/>
135 
136         </FrameLayout>
137 
138         <TextView
139             android:id="@+id/textSignIn"
140             android:layout_width="wrap_content"
141             android:layout_height="wrap_content"
142             android:layout_marginTop="@dimen/_10sdp"
143             android:text="@string/sign_in"
144             android:textColor="@color/primary"
145             android:textSize="@dimen/_13ssp"
146             android:textStyle="bold"/>
147     </LinearLayout>
148 
149 </ScrollView>

相關文章