diff --git a/app/src/main/java/com/dragons/custom/CustomAppBar.java b/app/src/main/java/com/dragons/custom/CustomAppBar.java index 8f2d20baf..0c0730ccc 100644 --- a/app/src/main/java/com/dragons/custom/CustomAppBar.java +++ b/app/src/main/java/com/dragons/custom/CustomAppBar.java @@ -26,6 +26,7 @@ import android.support.annotation.MenuRes; import android.support.annotation.NonNull; import android.support.design.widget.BottomSheetBehavior; import android.support.v4.widget.NestedScrollView; +import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.util.AttributeSet; @@ -38,10 +39,9 @@ import com.dragons.aurora.R; public class CustomAppBar extends NestedScrollView { public static final String MORE_ICON_TAG = "more_icon_tag"; - + private static final int sColumnWidth = 60; private BottomSheetBehavior bottomSheetBehavior; private ImageView showLessMore; - private OnClickListener onMoreClickListener = new OnClickListener() { @Override public void onClick(View v) { @@ -53,7 +53,6 @@ public class CustomAppBar extends NestedScrollView { } } }; - private BottomSheetBehavior.BottomSheetCallback bottomSheetCallback = new BottomSheetBehavior.BottomSheetCallback() { @Override public void onStateChanged(@NonNull View bottomSheet, int newState) { @@ -106,7 +105,6 @@ public class CustomAppBar extends NestedScrollView { public void setSecondaryMenu(@MenuRes int menuRes, OnClickListener onClickListener) { RecyclerView recyclerView = (RecyclerView) findViewById(R.id.secondary_menu_items_recyler); recyclerView.setNestedScrollingEnabled(false); - recyclerView.setLayoutManager(new LinearLayoutManager(getContext(), LinearLayoutManager.HORIZONTAL, false)); MenuSecondaryItemsAdapter menuSecondaryItemsAdapter = new MenuSecondaryItemsAdapter(getContext(), menuRes, onClickListener); recyclerView.setAdapter(menuSecondaryItemsAdapter); } @@ -127,6 +125,5 @@ public class CustomAppBar extends NestedScrollView { public void expand() { bottomSheetBehavior.setState(BottomSheetBehavior.PEEK_HEIGHT_AUTO); } - } diff --git a/app/src/main/res/layout/content_app_bar.xml b/app/src/main/res/layout/content_app_bar.xml index 3efca5e58..32505cbd7 100644 --- a/app/src/main/res/layout/content_app_bar.xml +++ b/app/src/main/res/layout/content_app_bar.xml @@ -1,5 +1,4 @@ - - + android:tint="?android:attr/colorForeground" /> diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 3adf4f0a3..20918e2b2 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -33,7 +33,7 @@ 86dp - 48dp + 50dp 10dp 15dp