|
|
@@ -423,6 +423,7 @@ public class ActionBarManager {
|
|
|
layoutCategoryTab.setVisibility(layoutCategoryTab.getVisibility() == View.GONE ? View.VISIBLE : View.GONE);
|
|
|
buttonArrow.setImageResource(layoutCategoryTab.getVisibility() == View.GONE ? R.drawable.icon_h_down : R.drawable.icon_header_up);
|
|
|
});
|
|
|
+
|
|
|
if (newBuilder.isVisibleCategoryArrow) {
|
|
|
actionBarTitle.setOnClickListener(view1 -> {
|
|
|
layoutCategoryTab.setVisibility(layoutCategoryTab.getVisibility() == View.GONE ? View.VISIBLE : View.GONE);
|
|
|
@@ -432,14 +433,16 @@ public class ActionBarManager {
|
|
|
else {
|
|
|
actionBarTitle.setOnClickListener(null);
|
|
|
}
|
|
|
- categoryMainTab.setOnCheckedChangeListener((radioGroup, i) -> {
|
|
|
- int selectIndex = categoryMainTab.indexOfChild(appBarLayout.findViewById(radioGroup.getCheckedRadioButtonId()));
|
|
|
- //Log.e("APP# ActionBarManager | init", "|" + selectIndex);
|
|
|
- if (null != newBuilder.categoryListener) {
|
|
|
- newBuilder.categoryListener.onClick(actionBar, selectIndex);
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
+ int len = categoryMainTab.getChildCount();
|
|
|
+ for (int i = 0; i < len; ++i) {
|
|
|
+ (categoryMainTab.getChildAt(i)).setOnClickListener(v -> {
|
|
|
+ int selectIndex = categoryMainTab.indexOfChild(v);
|
|
|
+ //Log.e("APP# ActionBarManager | init", "|" + selectIndex);
|
|
|
+ if (null != newBuilder.categoryListener) {
|
|
|
+ newBuilder.categoryListener.onClick(actionBar, selectIndex);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (builder.isVisibleMenu != newBuilder.isVisibleMenu || builder.menuListener != newBuilder.menuListener) {
|