Browse Source

[공통][New] 네트워크 에러 레이아웃 수정

hyodong.min 7 years ago
parent
commit
fd2738df4c

+ 15 - 0
app/src/main/res/drawable/ic_icon_research_none.xml

@@ -0,0 +1,15 @@
+<vector android:height="57dp" android:viewportHeight="228"
+    android:viewportWidth="228" android:width="57dp"
+    xmlns:aapt="http://schemas.android.com/aapt" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillType="evenOdd" android:pathData="M57,60m-45,0a45,45 0,1 1,90 0a45,45 0,1 1,-90 0">
+        <aapt:attr name="android:fillColor">
+            <gradient android:endX="-5.5365" android:endY="7.0422"
+                android:startX="108.849" android:startY="105" android:type="linear">
+                <item android:color="#FFFF8D8D" android:offset="0"/>
+                <item android:color="#FFFF9423" android:offset="1"/>
+            </gradient>
+        </aapt:attr>
+    </path>
+    <path android:fillColor="#000" android:fillType="nonZero" android:pathData="M172.192,191.603C156.985,205.513 136.734,214 114.5,214 67.28,214 29,175.72 29,128.5S67.28,43 114.5,43 200,81.28 200,128.5c0,10.736 -1.979,21.01 -5.591,30.476l-5.606,-2.139c3.421,-8.965 5.197,-18.524 5.197,-28.337 0,-43.907 -35.593,-79.5 -79.5,-79.5S35,84.593 35,128.5 70.593,208 114.5,208c20.136,0 39.085,-7.508 53.642,-20.824l4.05,4.427z"/>
+    <path android:fillColor="#000" android:fillType="evenOdd" android:pathData="M112,96h6v46h-6L112,96zM112,153h6v15h-6v-15z"/>
+</vector>

+ 50 - 48
app/src/main/res/layout/fragment_network_error.xml

@@ -1,64 +1,66 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
+<android.support.constraint.ConstraintLayout
   xmlns:android="http://schemas.android.com/apk/res/android"
+  xmlns:app="http://schemas.android.com/apk/res-auto"
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
-  android:orientation="vertical"
   android:background="@color/CFFFFFF"
   >
 
-  <LinearLayout
+  <ImageView
+    android:id="@+id/icon"
+    android:layout_width="57dp"
+    android:layout_height="57dp"
+    android:layout_marginStart="8dp"
+    android:layout_marginTop="158dp"
+    android:layout_marginEnd="8dp"
+    android:layout_marginBottom="23dp"
+    app:layout_constraintBottom_toTopOf="@+id/text_title"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintStart_toStartOf="parent"
+    app:layout_constraintTop_toTopOf="parent"
+    app:srcCompat="@drawable/ic_icon_research_none"/>
+
+  <TextView
+    android:id="@+id/text_title"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    android:layout_marginStart="24dp"
-    android:layout_marginTop="53dp"
-    android:layout_marginEnd="24dp"
-    android:orientation="vertical">
-
-    <TextView
-      android:id="@+id/text_title"
-      android:layout_width="match_parent"
-      android:layout_height="wrap_content"
-      android:lineSpacingExtra="8sp"
-      android:text="@string/network_disconnected_message"
-      android:textColor="#000000"
-      android:textSize="21sp"
-      />
-
-
-    <TextView
-      android:id="@+id/text_description"
-      android:layout_width="match_parent"
-      android:layout_height="wrap_content"
-      android:layout_marginTop="17dp"
-      android:lineSpacingExtra="5sp"
-      android:text="@string/network_disconnected_message_detail"
-      android:textColor="#999999"
-      android:textSize="14sp"
-      />
+    android:gravity="center_horizontal"
+    android:lineSpacingExtra="7sp"
+    android:text="@string/network_disconnected_message"
+    android:textColor="@color/C000000"
+    android:textSize="18sp"
+    app:layout_constraintBottom_toTopOf="@+id/text_description"
+    app:layout_constraintTop_toBottomOf="@+id/icon"/>
 
-  </LinearLayout>
 
-  <Space
-    android:layout_width="match_parent"
-    android:layout_height="0dp"
-    android:layout_weight="1"
-    />
-
-  <LinearLayout
+  <TextView
+    android:id="@+id/text_description"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    android:layout_marginBottom="35dp"
-    android:gravity="center"
-    >
+    android:layout_marginTop="11dp"
+    android:gravity="center_horizontal"
+    android:lineSpacingExtra="6sp"
+    android:text="@string/network_disconnected_message_detail"
+    android:textColor="@color/C999999"
+    android:textSize="14sp"
+    app:layout_constraintTop_toBottomOf="@+id/text_title"/>
 
-    <Button
-      android:id="@+id/button_confirm"
-      style="@style/SignUpButton"
-      android:layout_width="wrap_content"
-      android:layout_height="wrap_content"
-      android:text="@string/retry"/>
 
-  </LinearLayout>
-</LinearLayout>
+  <Button
+    android:id="@+id/button_confirm"
+    style="@android:style/Widget.DeviceDefault.Button.Borderless"
+    android:layout_width="match_parent"
+    android:layout_height="42dp"
+    android:layout_marginStart="25dp"
+    android:layout_marginEnd="25dp"
+    android:layout_marginBottom="25dp"
+    android:background="@color/C000000"
+    android:lineSpacingExtra="6sp"
+    android:text="@string/retry"
+    android:textColor="#ffffff"
+    android:textSize="15sp"
+    app:layout_constraintBottom_toBottomOf="parent"/>
+
+</android.support.constraint.ConstraintLayout>