浏览代码

[공통][Common]에러 메시지에 따른 레이아웃 구성

Hasemi 7 年之前
父节点
当前提交
9e99ef15ec

+ 78 - 0
app/src/main/res/layout/email_inquiry.xml

@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+  xmlns:android="http://schemas.android.com/apk/res/android"
+  android:layout_width="match_parent"
+  android:layout_gravity="bottom"
+  android:orientation="vertical"
+  android:layout_height="wrap_content">
+<LinearLayout
+  android:layout_gravity="bottom"
+  android:layout_width="match_parent"
+  android:orientation="vertical"
+  android:layout_marginRight="10dp"
+  android:layout_marginBottom="10dp"
+  android:layout_marginTop="10dp"
+  android:layout_marginLeft="10dp"
+  android:background="@drawable/coupon_image"
+  android:layout_height="wrap_content">
+
+
+  <LinearLayout
+    android:layout_marginRight="10dp"
+    android:layout_marginBottom="10dp"
+    android:layout_marginTop="10dp"
+    android:layout_marginLeft="10dp"
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content"
+    android:orientation="horizontal"
+    android:weightSum="10"
+    >
+    <ImageView
+      android:layout_width="0dp"
+      android:layout_height="wrap_content"
+      android:layout_weight="2"
+      android:src="@drawable/cancel"
+      />
+    <TextView
+      android:layout_width="0dp"
+      android:layout_weight="8"
+      android:layout_height="wrap_content"
+      android:text="@string/email_inquiry"
+      android:textSize="20dp"
+      />
+  </LinearLayout>
+  <TextView
+    android:layout_marginRight="10dp"
+    android:layout_marginBottom="10dp"
+    android:layout_width="wrap_content"
+    android:layout_marginLeft="74dp"
+    android:layout_height="wrap_content"
+    android:text="@string/email_address"
+    />
+</LinearLayout>
+
+  <LinearLayout
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content"
+    android:layout_gravity="bottom"
+    android:orientation="horizontal"
+    android:weightSum="4"
+    >
+
+    <Button
+      android:id="@+id/button_main"
+      android:layout_width="0dp"
+      android:layout_height="wrap_content"
+      android:layout_gravity="bottom"
+      android:layout_weight="2"
+      android:text="@string/main"/>
+
+    <Button
+      android:id="@+id/button_previous_page"
+      android:layout_width="0dp"
+      android:layout_height="wrap_content"
+      android:layout_gravity="bottom"
+      android:layout_weight="2"
+      android:text="@string/previous_page"/>
+  </LinearLayout>
+</LinearLayout>

+ 61 - 0
app/src/main/res/layout/fragment_error_404.xml

@@ -0,0 +1,61 @@
+<?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:gravity="center"
+  android:orientation="vertical">
+
+  <LinearLayout
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:orientation="vertical"
+    android:weightSum="12">
+
+    <LinearLayout
+      android:layout_width="wrap_content"
+      android:layout_height="0dp"
+      android:layout_gravity="center"
+      android:layout_weight="3"/>
+
+    <ImageView
+      android:layout_width="wrap_content"
+      android:layout_height="0dp"
+      android:layout_gravity="center"
+      android:layout_weight="2"
+      android:src="@mipmap/ic_launcher_round"
+      />
+
+    <TextView
+      android:id="@+id/text_message"
+      android:layout_width="match_parent"
+      android:layout_height="0dp"
+      android:layout_weight="1"
+      android:text="@string/error_message_404type"
+      android:textAlignment="center"
+      android:textSize="15dp"/>
+
+    <TextView
+      android:id="@+id/text_message_detail"
+      android:layout_width="match_parent"
+      android:layout_height="0dp"
+      android:layout_weight="1"
+      android:text="@string/error_detail_message_404type"
+      android:textAlignment="center"/>
+
+    <LinearLayout
+      android:layout_width="match_parent"
+      android:layout_height="0dp"
+      android:layout_weight="5"
+      android:orientation="vertical"
+      android:gravity="bottom"
+      android:layout_gravity="bottom"
+      >
+
+      <include layout="@layout/email_inquiry"/>
+    </LinearLayout>
+
+  </LinearLayout>
+</LinearLayout>

+ 61 - 0
app/src/main/res/layout/fragment_error_500.xml

@@ -0,0 +1,61 @@
+<?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:gravity="center"
+  android:orientation="vertical">
+
+  <LinearLayout
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:orientation="vertical"
+    android:weightSum="12">
+
+    <LinearLayout
+      android:layout_width="wrap_content"
+      android:layout_height="0dp"
+      android:layout_gravity="center"
+      android:layout_weight="3"/>
+
+    <ImageView
+      android:layout_width="wrap_content"
+      android:layout_height="0dp"
+      android:layout_gravity="center"
+      android:layout_weight="2"
+      android:src="@mipmap/ic_launcher_round"
+      />
+
+    <TextView
+      android:id="@+id/text_message"
+      android:layout_width="match_parent"
+      android:layout_height="0dp"
+      android:layout_weight="1"
+      android:text="@string/error_message_500type"
+      android:textAlignment="center"
+      android:textSize="15dp"/>
+
+    <TextView
+      android:id="@+id/text_message_detail"
+      android:layout_width="match_parent"
+      android:layout_height="0dp"
+      android:layout_weight="1"
+      android:text="@string/error_detail_message_500type"
+      android:textAlignment="center"/>
+
+    <LinearLayout
+      android:layout_width="match_parent"
+      android:layout_height="0dp"
+      android:layout_gravity="bottom"
+      android:layout_weight="5"
+      android:gravity="bottom"
+      android:orientation="vertical"
+      >
+
+      <include layout="@layout/email_inquiry"/>
+    </LinearLayout>
+
+  </LinearLayout>
+</LinearLayout>

+ 48 - 16
app/src/main/res/layout/fragment_network_disconnected.xml

@@ -6,26 +6,58 @@
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:gravity="center"
-  android:background="@color/common_google_signin_btn_text_dark_focused"
   android:orientation="vertical">
 
-  <TextView
-    android:id="@+id/text_message"
+  <LinearLayout
     android:layout_width="match_parent"
-    android:layout_height="wrap_content"
-    android:text="@string/network_disconnected_message"/>
+    android:layout_height="match_parent"
+    android:orientation="vertical"
+    android:weightSum="10">
 
-  <TextView
-    android:id="@+id/text_message_detail"
-    android:layout_width="match_parent"
-    android:layout_height="wrap_content"
-    android:text="@string/network_disconnected_message_detail"/>
+    <LinearLayout
+      android:layout_width="wrap_content"
+      android:layout_height="0dp"
+      android:layout_gravity="center"
+      android:layout_weight="3"/>
+    <ImageView
+      android:layout_width="wrap_content"
+      android:layout_height="0dp"
+      android:layout_gravity="center"
+      android:layout_weight="2"
+      android:src="@mipmap/ic_launcher_round"
+      />
+
+    <TextView
+      android:id="@+id/text_message"
+      android:layout_width="match_parent"
+      android:layout_height="0dp"
+      android:layout_weight="1"
+      android:text="@string/network_disconnected_message"
+      android:textAlignment="center"/>
+
+    <TextView
+      android:id="@+id/text_message_detail"
+      android:layout_width="match_parent"
+      android:layout_height="0dp"
+      android:layout_weight="1"
+      android:text="@string/network_disconnected_message_detail"
+      android:textAlignment="center"/>
+
+    <LinearLayout
+      android:layout_width="match_parent"
+      android:layout_height="wrap_content"
+      android:layout_weight="3">
+
+      <Button
+        android:id="@+id/button_retry"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_gravity="bottom"
+        android:text="@string/retry"/>
+    </LinearLayout>
+
+
+  </LinearLayout>
 
-  <Button
-    android:id="@+id/button_retry"
-    android:layout_gravity="bottom"
-    android:layout_width="match_parent"
-    android:layout_height="wrap_content"
-    android:text="@string/retry"/>
 
 </LinearLayout>