|
|
@@ -48,6 +48,7 @@ public class NavigationBar {
|
|
|
private ImageView buttonShare;
|
|
|
private ImageView buttonLike;
|
|
|
private ImageView buttonBookmark;
|
|
|
+ private ImageView buttonDotDotDot;
|
|
|
private View viewBackground;
|
|
|
|
|
|
private boolean isArrowOpened = false;
|
|
|
@@ -86,6 +87,7 @@ public class NavigationBar {
|
|
|
buttonShare = navigationView.findViewById(R.id.image_view_share);
|
|
|
buttonLike = navigationView.findViewById(R.id.image_view_like);
|
|
|
buttonBookmark = navigationView.findViewById(R.id.image_view_bookmark);
|
|
|
+ buttonDotDotDot = navigationView.findViewById(R.id.image_view_dotdotdot);
|
|
|
viewBackground = navigationView.findViewById(R.id.layout_background);
|
|
|
|
|
|
setClickListener(buttonBack);
|
|
|
@@ -103,6 +105,7 @@ public class NavigationBar {
|
|
|
setClickListener(buttonShare);
|
|
|
setClickListener(buttonLike);
|
|
|
setClickListener(buttonBookmark);
|
|
|
+ setClickListener(buttonDotDotDot);
|
|
|
setClickListener(imageBi);
|
|
|
|
|
|
}
|
|
|
@@ -215,6 +218,10 @@ public class NavigationBar {
|
|
|
setViewVisible(buttonBookmark, isVisible, View.GONE);
|
|
|
}
|
|
|
|
|
|
+ private void setDotDotDotVisible(boolean isVisible) {
|
|
|
+ setViewVisible(buttonDotDotDot, isVisible, View.GONE);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 메뉴 버튼 보이기
|
|
|
*
|
|
|
@@ -305,6 +312,9 @@ public class NavigationBar {
|
|
|
setBookmarkVisible(newBuilder.isVisibleBookmark);
|
|
|
mapClickListener(buttonBookmark, newBuilder.bookmarkListener);
|
|
|
|
|
|
+ setDotDotDotVisible(newBuilder.isVisibleDotDotDot);
|
|
|
+ mapClickListener(buttonDotDotDot, newBuilder.dotDotDotListener);
|
|
|
+
|
|
|
setWhiteUi(newBuilder.isWhite);
|
|
|
builder = newBuilder;
|
|
|
}
|
|
|
@@ -466,6 +476,7 @@ public class NavigationBar {
|
|
|
protected boolean isVisibleLike = false;
|
|
|
protected boolean isVisibleShare = false;
|
|
|
protected boolean isVisibleBookmark = false;
|
|
|
+ protected boolean isVisibleDotDotDot = false;
|
|
|
protected int text = R.string.empty_string;
|
|
|
|
|
|
protected INavigationBarListener backListener = null;
|
|
|
@@ -484,6 +495,7 @@ public class NavigationBar {
|
|
|
protected INavigationBarListener shareListener = null;
|
|
|
protected INavigationBarListener bookmarkListener = null;
|
|
|
protected INavigationBarListener logoListener = null;
|
|
|
+ protected INavigationBarListener dotDotDotListener = null;
|
|
|
|
|
|
public Builder(Context context) {
|
|
|
this.context = context;
|
|
|
@@ -722,6 +734,18 @@ public class NavigationBar {
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 점점점 메뉴
|
|
|
+ *
|
|
|
+ * @param dotDotDotListener
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public Builder dotDotDot(INavigationBarListener dotDotDotListener) {
|
|
|
+ this.dotDotDotListener = dotDotDotListener;
|
|
|
+ isVisibleDotDotDot = true;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Build NavigationBar
|
|
|
*
|