|
|
@@ -4,6 +4,8 @@ import android.graphics.Rect;
|
|
|
import android.os.Bundle;
|
|
|
import android.support.annotation.NonNull;
|
|
|
import android.support.annotation.Nullable;
|
|
|
+import android.support.design.widget.AppBarLayout;
|
|
|
+import android.support.design.widget.CoordinatorLayout;
|
|
|
import android.support.v7.widget.LinearLayoutManager;
|
|
|
import android.support.v7.widget.RecyclerView;
|
|
|
import android.util.Log;
|
|
|
@@ -42,8 +44,10 @@ public class BucketListDetailFragment extends FragmentBase<BucketListDetailPrese
|
|
|
private BucketListDetailAdapter adapter;
|
|
|
|
|
|
private TextView textTagTitle;
|
|
|
+ private ViewGroup layoutSelectedBucket;
|
|
|
private ViewGroup layoutTagContents;
|
|
|
private ViewGroup layoutNothing;
|
|
|
+ private AppBarLayout appBarLayout;
|
|
|
|
|
|
private TextView textBucketTitle;
|
|
|
private ImageView imageBucket;
|
|
|
@@ -65,11 +69,25 @@ public class BucketListDetailFragment extends FragmentBase<BucketListDetailPrese
|
|
|
textTagTitle = findViewById(R.id.text_title);
|
|
|
layoutTagContents = findViewById(R.id.layout_contents);
|
|
|
layoutNothing = findViewById(R.id.layout_nothing);
|
|
|
+ layoutSelectedBucket = findViewById(R.id.layout_select_bucket);
|
|
|
recyclerViewBucketListDetail = findViewById(R.id.recycler_view_bucket_list_detail);
|
|
|
+ appBarLayout = findViewById(R.id.app_bar_layout);
|
|
|
|
|
|
setTagTitle(0);
|
|
|
|
|
|
imageBucket.setOnClickListener(view -> presenter.onEvent(new Event.Builder(Event.UPDATE).build()));
|
|
|
+
|
|
|
+ if (appBarLayout.getLayoutParams() != null) {
|
|
|
+ CoordinatorLayout.LayoutParams layoutParams = (CoordinatorLayout.LayoutParams) appBarLayout.getLayoutParams();
|
|
|
+ AppBarLayout.Behavior appBarLayoutBehaviour = new AppBarLayout.Behavior();
|
|
|
+ appBarLayoutBehaviour.setDragCallback(new AppBarLayout.Behavior.DragCallback() {
|
|
|
+ @Override
|
|
|
+ public boolean canDrag(@NonNull AppBarLayout appBarLayout) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ layoutParams.setBehavior(appBarLayoutBehaviour);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|