|
|
@@ -63,11 +63,18 @@ public class ActionBarBuilder {
|
|
|
}
|
|
|
|
|
|
public ActionBarBuilder title(@StringRes int stringId) {
|
|
|
- return title(stringId, navigationBar -> {
|
|
|
- if (null != titleListener) {
|
|
|
- titleListener.onClick(navigationBar);
|
|
|
- }
|
|
|
- });
|
|
|
+ navigationBarBuilder.title(stringId);
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public ActionBarBuilder title(String title, INavigationBarListener titleListener) {
|
|
|
+ navigationBarBuilder.title(title, titleListener);
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public ActionBarBuilder title(String title) {
|
|
|
+ navigationBarBuilder.title(title);
|
|
|
+ return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -130,6 +137,13 @@ public class ActionBarBuilder {
|
|
|
selectedCategoryIndex = index;
|
|
|
this.categoryListener = categoryListener;
|
|
|
navigationBarBuilder.arrow();
|
|
|
+
|
|
|
+ this.title(navigationBarBuilder.title, navigationBar -> {
|
|
|
+ if (null != titleListener) {
|
|
|
+ titleListener.onClick(navigationBar);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
return this;
|
|
|
}
|
|
|
|