Browse Source

[버킷][Bug] 버킷 태그 검색 결과 없을때 레이아웃 아래로 떨어져 보이는 버그 수정

Hasemi 6 years ago
parent
commit
2a3e5b41ea

+ 5 - 2
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/my/bucketlist/BucketListWithTagDetailFragment.java

@@ -15,6 +15,7 @@ import android.view.ViewGroup;
 import android.widget.CheckBox;
 import android.widget.HorizontalScrollView;
 import android.widget.ImageView;
+import android.widget.LinearLayout;
 import android.widget.TextView;
 
 import com.bumptech.glide.Glide;
@@ -59,6 +60,7 @@ public class BucketListWithTagDetailFragment extends FragmentBase<BucketListWith
   private TextView textBucketTitle;
   private ImageView imageBucket;
   private ImageView imageChecker;
+  private LinearLayout layoutContainerRecyclerView;
 
   private Tutorial tutorial;
 
@@ -78,6 +80,7 @@ public class BucketListWithTagDetailFragment extends FragmentBase<BucketListWith
     textTagTitle = findViewById(R.id.text_title);
     layoutTagContents = findViewById(R.id.layout_contents);
     scrollTag = findViewById(R.id.scroll_tag);
+    layoutContainerRecyclerView = findViewById(R.id.layout_recycler_view_container);
     layoutNothing = findViewById(R.id.layout_nothing);
     layoutSelectedBucket = findViewById(R.id.layout_select_bucket);
     recyclerViewBucketListDetail = findViewById(R.id.recycler_view_bucket_list_detail);
@@ -260,11 +263,11 @@ public class BucketListWithTagDetailFragment extends FragmentBase<BucketListWith
     if (isVisible) {
       setTagTitle(0);
       layoutNothing.setVisibility(View.VISIBLE);
-      recyclerViewBucketListDetail.setVisibility(View.GONE);
+      layoutContainerRecyclerView.setVisibility(View.GONE);
     }
     else {
       layoutNothing.setVisibility(View.GONE);
-      recyclerViewBucketListDetail.setVisibility(View.VISIBLE);
+      layoutContainerRecyclerView.setVisibility(View.VISIBLE);
     }
 
   }

+ 5 - 3
app/src/main/res/layout/fragment_bucket_list_with_tag_detail.xml

@@ -158,13 +158,15 @@
     </android.support.design.widget.AppBarLayout>
 
     <LinearLayout
+      android:id="@+id/layout_recycler_view_container"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       android:orientation="vertical"
+      tools:visibility="gone"
       app:layout_behavior="@string/appbar_scrolling_view_behavior">
 
       <android.support.v7.widget.RecyclerView
-
+        tools:visibility="gone"
         android:id="@+id/recycler_view_bucket_list_detail"
         android:layout_width="match_parent"
         android:layout_height="0dp"
@@ -181,10 +183,10 @@
     android:id="@+id/layout_nothing"
     android:layout_width="match_parent"
     android:layout_height="0dp"
-    android:visibility="gone"
+    android:visibility="visible"
     app:layout_constraintBottom_toBottomOf="parent"
     app:layout_constraintTop_toBottomOf="@id/scroll_layout"
-    tools:visibility="gone">
+    tools:visibility="visible">
 
     <ImageView
       android:id="@+id/image_result_nothing"