Browse Source

[회원가입][Bug] 모바일 인증 - validation 메세지가 키보드에 가려지지 않도록 수정

hyodong.min 7 years ago
parent
commit
d1f819ec7a
1 changed files with 156 additions and 122 deletions
  1. 156 122
      app/src/main/res/layout/sign_up_phone_authorization_view.xml

+ 156 - 122
app/src/main/res/layout/sign_up_phone_authorization_view.xml

@@ -444,158 +444,192 @@
 
     </LinearLayout>
 
-    <LinearLayout
+    <RelativeLayout
       android:layout_width="match_parent"
-      android:layout_height="wrap_content"
-      android:layout_marginLeft="24.5dp"
-      android:layout_marginRight="24.5dp"
-      android:layout_marginTop="25.5dp"
-      android:orientation="horizontal">
-
-      <kr.co.zumo.app.lifeplus.view.custom.ClearEditText
-        android:id="@+id/edit_text_phone_number"
-        android:layout_width="wrap_content"
-        android:layout_height="match_parent"
-        android:layout_weight="1"
-        android:background="@null"
-        android:hint="@string/phone_identify_phone_hint"
-        android:inputType="number"
-        android:lineSpacingExtra="5.5sp"
-        android:maxLength="8"
-        android:textColor="#000000"
-        android:textColorHint="#c5c5c5"
-        android:textSize="14sp"
-        />-
+      android:layout_height="wrap_content">
 
-      <TextView
-        android:id="@+id/button_identify_number_send"
-        android:layout_width="wrap_content"
+      <LinearLayout
+        android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:lineSpacingExtra="3.5sp"
-        android:paddingLeft="12dp"
-        android:text="@string/phone_identify_submit"
-        android:textColor="@color/button_state_color"
-        android:textSize="12sp"
-        />
+        android:orientation="horizontal"
+        android:paddingStart="24dp"
+        android:paddingTop="25dp"
+        android:paddingEnd="24dp"
+        >
 
-    </LinearLayout>
+        <LinearLayout
+          android:layout_width="0dp"
+          android:layout_height="wrap_content"
+          android:layout_weight="1">
+
+          <kr.co.zumo.app.lifeplus.view.custom.ClearEditText
+            android:id="@+id/edit_text_phone_number"
+            android:layout_width="0dp"
+            android:layout_height="wrap_content"
+            android:layout_weight="1"
+            android:background="@null"
+            android:hint="@string/phone_identify_phone_hint"
+            android:inputType="number"
+            android:lineSpacingExtra="5sp"
+            android:maxLength="8"
+            android:paddingBottom="40dp"
+            android:textColor="#000000"
+            android:textColorHint="#c5c5c5"
+            android:textSize="14sp"
+            tools:text="12345678"
+            />
+        </LinearLayout>
+
+        <LinearLayout
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content">
+
+          <TextView
+            android:id="@+id/button_identify_number_send"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:paddingStart="12dp"
+            android:text="@string/phone_identify_submit"
+            android:textColor="@color/button_state_color"
+            android:textSize="12sp"
+            />
+        </LinearLayout>
 
-    <LinearLayout
-      android:layout_width="match_parent"
-      android:layout_height="wrap_content"
-      android:layout_marginLeft="24.5dp"
-      android:layout_marginRight="24.5dp"
-      android:layout_marginTop="11.3dp"
-      android:orientation="vertical">
+      </LinearLayout>
 
-      <View
+      <LinearLayout
         android:layout_width="match_parent"
-        android:layout_height="1dp"
-        android:background="#e5e5e5"/>
+        android:layout_height="wrap_content"
+        android:layout_marginLeft="24dp"
+        android:layout_marginTop="56dp"
+        android:layout_marginRight="24dp"
+        android:orientation="vertical">
 
-    </LinearLayout>
+        <View
+          android:layout_width="match_parent"
+          android:layout_height="1dp"
+          android:background="#e5e5e5"/>
 
-    <LinearLayout
-      android:layout_width="match_parent"
-      android:layout_height="wrap_content"
-      android:layout_marginLeft="24.5dp"
-      android:layout_marginRight="24.5dp"
-      android:layout_marginTop="7dp">
+      </LinearLayout>
 
-      <TextView
-        android:id="@+id/text_view_phone_number_validation"
-        android:layout_width="wrap_content"
+      <LinearLayout
+        android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:lineSpacingExtra="3.5sp"
-        android:textColor="#f12815"
-        android:textSize="10.5sp"
-        />
-    </LinearLayout>
+        android:layout_marginLeft="24dp"
+        android:layout_marginTop="63dp"
+        android:layout_marginRight="24dp">
 
-    <LinearLayout
-      android:layout_width="match_parent"
-      android:layout_height="wrap_content"
-      android:layout_marginLeft="24.5dp"
-      android:layout_marginRight="24.5dp"
-      android:layout_marginTop="25.5dp"
-      android:orientation="horizontal">
+        <TextView
+          android:id="@+id/text_view_phone_number_validation"
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content"
+          android:lineSpacingExtra="3sp"
+          android:textColor="#f12815"
+          android:textSize="10sp"
+          />
+      </LinearLayout>
+    </RelativeLayout>
+    <!--       -->
 
-      <kr.co.zumo.app.lifeplus.view.custom.ClearEditText
-        android:id="@+id/edit_text_authorized_number"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:layout_weight="1"
-        android:background="@null"
-        android:hint="@string/phone_identify_six_characters"
-        android:inputType="number"
-        android:lineSpacingExtra="5sp"
-        android:maxLength="6"
-        android:textColor="#000000"
-        android:textColorHint="#c5c5c5"
-        android:textSize="14sp"/>
+    <RelativeLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content">
 
       <LinearLayout
-        android:id="@+id/phone_identify_layout"
-        android:layout_width="wrap_content"
+        android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:orientation="horizontal"
-        >
-
-        <ImageView
-          android:layout_width="13dp"
-          android:layout_height="13dp"
-          android:layout_gravity="center"
-          android:layout_marginLeft="8.8dp"
-          android:layout_marginRight="5.3dp"
-          android:src="@drawable/icon_input_clock"
-          />
+        android:paddingStart="24dp"
+        android:paddingTop="25dp"
+        android:paddingEnd="24dp">
 
-        <TextView
-          android:id="@+id/text_view_phone_identify_time"
-          android:layout_width="wrap_content"
+        <kr.co.zumo.app.lifeplus.view.custom.ClearEditText
+          android:id="@+id/edit_text_authorized_number"
+          android:layout_width="match_parent"
           android:layout_height="wrap_content"
-          android:layout_marginRight="12dp"
+          android:layout_weight="1"
+          android:background="@null"
+          android:hint="@string/phone_identify_six_characters"
+          android:inputType="number"
           android:lineSpacingExtra="5sp"
-          android:textColor="#999999"
+          android:maxLength="6"
+          android:paddingBottom="40dp"
+          android:textColor="#000000"
+          android:textColorHint="#c5c5c5"
           android:textSize="14sp"
-          tools:text="2:55"
-          />
+          tools:text="234879"/>
 
-        <TextView
-          android:id="@+id/button_phone_identify_time_expansion"
+        <LinearLayout
+          android:id="@+id/phone_identify_layout"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
-          android:gravity="end"
-          android:lineSpacingExtra="3sp"
-          android:text="@string/phone_identify_time_delay"
-          android:textColor="@color/button_state_color"
-          android:textSize="12sp"/>
+          android:orientation="horizontal"
+          >
+
+          <ImageView
+            android:layout_width="13dp"
+            android:layout_height="13dp"
+            android:layout_gravity="center"
+            android:layout_marginLeft="8.8dp"
+            android:layout_marginRight="5.3dp"
+            android:src="@drawable/icon_input_clock"
+            />
+
+          <TextView
+            android:id="@+id/text_view_phone_identify_time"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_marginRight="12dp"
+            android:lineSpacingExtra="5sp"
+            android:textColor="#999999"
+            android:textSize="14sp"
+            tools:text="2:55"
+            />
+
+          <TextView
+            android:id="@+id/button_phone_identify_time_expansion"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:gravity="end"
+            android:lineSpacingExtra="3sp"
+            android:text="@string/phone_identify_time_delay"
+            android:textColor="@color/button_state_color"
+            android:textSize="12sp"/>
+        </LinearLayout>
       </LinearLayout>
-    </LinearLayout>
-
-    <LinearLayout
-      android:layout_width="match_parent"
-      android:layout_height="wrap_content"
-      android:layout_marginLeft="24dp"
-      android:layout_marginTop="11.3dp"
-      android:layout_marginRight="24dp"
-      android:orientation="vertical">
 
-      <View
+      <LinearLayout
         android:layout_width="match_parent"
-        android:layout_height="1dp"
-        android:background="#e5e5e5"/>
+        android:layout_height="wrap_content"
+        android:layout_marginLeft="24dp"
+        android:layout_marginTop="56dp"
+        android:layout_marginRight="24dp"
+        android:orientation="vertical">
 
-      <TextView
-        android:id="@+id/text_authorized_number_validation"
-        android:layout_width="wrap_content"
+        <View
+          android:layout_width="match_parent"
+          android:layout_height="1dp"
+          android:background="#e5e5e5"/>
+
+      </LinearLayout>
+
+      <LinearLayout
+        android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:lineSpacingExtra="3sp"
-        android:textColor="#f12815"
-        android:textSize="10sp"
-        />
-    </LinearLayout>
+        android:layout_marginLeft="24dp"
+        android:layout_marginTop="63dp"
+        android:layout_marginRight="24dp">
+        <TextView
+          android:id="@+id/text_authorized_number_validation"
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content"
+          android:lineSpacingExtra="3sp"
+          android:textColor="#f12815"
+          android:textSize="10sp"
+          />
+      </LinearLayout>
 
+    </RelativeLayout>
 
     <Button
       android:id="@+id/button_phone_identify_confirm"