|
|
@@ -75,6 +75,20 @@ public class BucketListWithTagDetailFragment extends FragmentBase<BucketListWith
|
|
|
recyclerViewBucketListDetail = findViewById(R.id.recycler_view_bucket_list_detail);
|
|
|
appBarLayout = findViewById(R.id.app_bar_layout);
|
|
|
|
|
|
+ appBarLayout.addOnOffsetChangedListener(new AppBarLayout.OnOffsetChangedListener() {
|
|
|
+ @Override
|
|
|
+ public void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset) {
|
|
|
+ if (Math.abs(verticalOffset) > (appBarLayout.getTotalScrollRange() >> 1)) {
|
|
|
+ // 줄어든 상태
|
|
|
+ textBucketTitle.setTextSize(16);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ // 커진 상태
|
|
|
+ textBucketTitle.setTextSize(21);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
setTagTitle(0);
|
|
|
|
|
|
textTagTitle.setOnClickListener(view -> presenter.onEvent(new Event.Builder(Event.UPDATE).build()));
|