|
|
@@ -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);
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
}
|