Browse Source

[버킷][Common] 버킷리스트 태그 있는 화면 뒷글자 잘림 현상 수정

Hasemi 6 years ago
parent
commit
e60cb1a8fb

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

@@ -29,6 +29,7 @@ import kr.co.zumo.app.lifeplus.bean.api.LifeplusContentsBean;
 import kr.co.zumo.app.lifeplus.bean.api.TagBean;
 import kr.co.zumo.app.lifeplus.helper.ActionBarHelper;
 import kr.co.zumo.app.lifeplus.helper.ScreenSizeHelper;
+import kr.co.zumo.app.lifeplus.util.AppUtil;
 import kr.co.zumo.app.lifeplus.util.ResourceUtil;
 import kr.co.zumo.app.lifeplus.view.Event;
 import kr.co.zumo.app.lifeplus.view.IEventListener;
@@ -62,7 +63,7 @@ public class BucketListWithTagDetailFragment extends FragmentBase<BucketListWith
   private ImageView imageBucket;
   private ImageView imageChecker;
   private LinearLayout layoutContainerRecyclerView;
-
+  private float textSize = 21f;
   private Tutorial tutorial;
 
   @Nullable
@@ -76,6 +77,7 @@ public class BucketListWithTagDetailFragment extends FragmentBase<BucketListWith
   protected void onAfterActivityCreated(Bundle savedInstanceState) {
 
     textBucketTitle = findViewById(R.id.text_view_select_bucket);
+    textBucketTitle.setTextSize(textSize);
     imageBucket = findViewById(R.id.image_background);
     imageChecker = findViewById(R.id.image_checker);
     textTagTitle = findViewById(R.id.text_title);
@@ -95,7 +97,15 @@ public class BucketListWithTagDetailFragment extends FragmentBase<BucketListWith
       appBarLayoutBehaviour.setDragCallback(new AppBarLayout.Behavior.DragCallback() {
         @Override
         public boolean canDrag(@NonNull AppBarLayout appBarLayout) {
-          return false;
+          boolean isReturn;
+
+          if (AppUtil.isDebug()) {
+            isReturn = true;
+          }
+          else {
+            isReturn = false;
+          }
+          return isReturn;
         }
       });
       layoutParams.setBehavior(appBarLayoutBehaviour);
@@ -212,6 +222,8 @@ public class BucketListWithTagDetailFragment extends FragmentBase<BucketListWith
       // update
       adapter.update(contentsBeans);
     }
+
+
   }
 
   private void setTagTitle(int size) {
@@ -300,7 +312,6 @@ public class BucketListWithTagDetailFragment extends FragmentBase<BucketListWith
   private void addAppbarLayoutScrollChange() {
     ConstraintLayout.LayoutParams params = (ConstraintLayout.LayoutParams) imageChecker.getLayoutParams();
 
-
     appBarLayout.addOnOffsetChangedListener(new AppBarLayout.OnOffsetChangedListener() {
       @Override
       public void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset) {
@@ -311,9 +322,10 @@ public class BucketListWithTagDetailFragment extends FragmentBase<BucketListWith
         }
         else {
           // 커진 상태
-          textBucketTitle.setTextSize(21);
+          textBucketTitle.setTextSize(textSize);
           params.topMargin = ResourceUtil.dpToPx(6);
         }
+
       }
     });
   }

+ 1 - 1
app/src/main/res/layout/fragment_bucket_list_with_tag_detail.xml

@@ -96,7 +96,7 @@
             android:maxWidth="255dp"
             android:maxLines="3"
             android:textColor="@color/CFFFFFF"
-            android:textSize="21dp"
+            tools:textSize="21dp"
             app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintEnd_toEndOf="parent"
             app:layout_constraintHorizontal_chainStyle="packed"