浏览代码

[세팅][Bug] 레이아웃 및 네비게이션 수정

hyodong.min 7 年之前
父节点
当前提交
58c08c8b46

+ 1 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/presenter/setting/SettingPresenter.java

@@ -51,7 +51,7 @@ public class SettingPresenter extends Presenter<BlankModel, IView> {
 
   @Override
   public boolean onBackPressed() {
-    onCommand(new FragmentChangeCommand(ScreenID.MAIN, ScreenID.DIRECTION_BACK));
+    onCommand(new FragmentChangeCommand(ScreenID.ALL_MENU, ScreenID.DIRECTION_BACK));
     return true;
   }
 

+ 8 - 13
app/src/main/res/layout/fragment_setting.xml

@@ -1,5 +1,5 @@
 <?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"
@@ -9,25 +9,20 @@
   android:orientation="vertical"
   >
 
-
   <android.support.v7.widget.RecyclerView
     android:id="@+id/recycler_view_setting"
-    android:layout_width="match_parent"
-    android:layout_height="wrap_content"
-    />
-
-  <LinearLayout
     android:layout_width="match_parent"
     android:layout_height="0dp"
-    android:clickable="true"
-    android:focusable="true"
-    android:layout_weight="1"/>
+    app:layout_constraintBottom_toTopOf="@+id/linearLayout"
+    app:layout_constraintTop_toTopOf="parent"/>
 
   <LinearLayout
+    android:id="@+id/linearLayout"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    android:gravity="bottom"
-    android:orientation="vertical">
+    android:background="@color/CFFFFFF"
+    android:orientation="vertical"
+    app:layout_constraintBottom_toBottomOf="parent">
 
     <LinearLayout
       android:layout_width="match_parent"
@@ -76,4 +71,4 @@
 
     </LinearLayout>
   </LinearLayout>
-</LinearLayout>
+</android.support.constraint.ConstraintLayout>