|
|
@@ -64,6 +64,7 @@ public class ActionBarManager {
|
|
|
private ImageView buttonSetting;
|
|
|
private ImageView buttonClose;
|
|
|
private TextView textButton;
|
|
|
+ private View viewUnderline;
|
|
|
|
|
|
private Builder builder;
|
|
|
|
|
|
@@ -115,6 +116,7 @@ public class ActionBarManager {
|
|
|
buttonSetting = view.findViewById(R.id.button_setting);
|
|
|
buttonClose = view.findViewById(R.id.button_close);
|
|
|
textButton = view.findViewById(R.id.text_sub);
|
|
|
+ viewUnderline = view.findViewById(R.id.view_underline);
|
|
|
|
|
|
setClickListener(buttonBack);
|
|
|
setClickListener(buttonSearch);
|
|
|
@@ -349,6 +351,10 @@ public class ActionBarManager {
|
|
|
setViewVisible(buttonArrow, isVisible, View.GONE);
|
|
|
}
|
|
|
|
|
|
+ private void setUnderlineVisible(boolean isVisible) {
|
|
|
+ setViewVisible(viewUnderline, isVisible, View.GONE);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 메뉴 버튼 보이기
|
|
|
*
|
|
|
@@ -400,6 +406,7 @@ public class ActionBarManager {
|
|
|
setNotificationVisible(false);
|
|
|
setCloseVisible(false);
|
|
|
setTextButtonVisible(false);
|
|
|
+ setUnderlineVisible(false);
|
|
|
}
|
|
|
|
|
|
if (builder.isScrollable != newBuilder.isScrollable) {
|
|
|
@@ -498,6 +505,10 @@ public class ActionBarManager {
|
|
|
mapClickListener(textButton, newBuilder.textButtonListener);
|
|
|
}
|
|
|
|
|
|
+ if (builder.isVisibleUnderline != newBuilder.isVisibleUnderline) {
|
|
|
+ setUnderlineVisible(newBuilder.isVisibleUnderline);
|
|
|
+ }
|
|
|
+
|
|
|
builder = newBuilder;
|
|
|
|
|
|
setContentsLayout(builder.isHidden, builder.isScrollable, builder.isTransparentBackground);
|
|
|
@@ -582,6 +593,7 @@ public class ActionBarManager {
|
|
|
private boolean isVisibleSetting = false;
|
|
|
private boolean isVisibleClose = false;
|
|
|
private boolean isVisibleTextButton = false;
|
|
|
+ private boolean isVisibleUnderline = false;
|
|
|
private int text = R.string.empty_string;
|
|
|
|
|
|
private int selectedCategoryIndex = -1;
|
|
|
@@ -773,6 +785,16 @@ public class ActionBarManager {
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 회색 밑 줄
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public Builder unlderline() {
|
|
|
+ isVisibleUnderline = true;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
private void set() {
|
|
|
ourInstance.set(this);
|
|
|
}
|