|
|
@@ -27,7 +27,7 @@ import kr.co.zumo.app.lifeplus.util.ResourceUtil;
|
|
|
* @since 2018. 10. 24.
|
|
|
*/
|
|
|
public class NavigationBar {
|
|
|
- private View view;
|
|
|
+ private View navigationView;
|
|
|
|
|
|
private TextView actionBarTitle;
|
|
|
private ImageView imageBi;
|
|
|
@@ -56,7 +56,7 @@ public class NavigationBar {
|
|
|
private NavigationBar(Context context) {
|
|
|
|
|
|
LayoutInflater inflater = LayoutInflater.from(context);
|
|
|
- this.view = inflater.inflate(R.layout.action_bar, null);
|
|
|
+ this.navigationView = inflater.inflate(R.layout.action_bar, null);
|
|
|
|
|
|
init();
|
|
|
}
|
|
|
@@ -65,25 +65,25 @@ public class NavigationBar {
|
|
|
private void init() {
|
|
|
clickListenerMap = new HashMap<>();
|
|
|
|
|
|
- imageBi = view.findViewById(R.id.image_bi);
|
|
|
- viewUnderline = view.findViewById(R.id.view_underline);
|
|
|
-
|
|
|
- actionBarTitle = view.findViewById(R.id.action_bar_title);
|
|
|
- buttonArrow = view.findViewById(R.id.image_view_open_arrow);
|
|
|
- buttonSearch = view.findViewById(R.id.image_view_search);
|
|
|
- buttonMenu = view.findViewById(R.id.image_view_menu);
|
|
|
- buttonBack = view.findViewById(R.id.image_view_back);
|
|
|
- buttonHome = view.findViewById(R.id.image_view_home);
|
|
|
- buttonNotification = view.findViewById(R.id.image_view_notification);
|
|
|
- buttonSetting = view.findViewById(R.id.image_view_setting);
|
|
|
- buttonClose = view.findViewById(R.id.image_view_close);
|
|
|
- textButton = view.findViewById(R.id.text_sub);
|
|
|
- buttonTrash = view.findViewById(R.id.image_view_trash);
|
|
|
- buttonConfirm = view.findViewById(R.id.image_view_confirm);
|
|
|
- buttonShare = view.findViewById(R.id.image_view_share);
|
|
|
- buttonLike = view.findViewById(R.id.image_view_like);
|
|
|
- buttonBookmark = view.findViewById(R.id.image_view_bookmark);
|
|
|
- viewBackground = view.findViewById(R.id.layout_background);
|
|
|
+ imageBi = navigationView.findViewById(R.id.image_bi);
|
|
|
+ viewUnderline = navigationView.findViewById(R.id.view_underline);
|
|
|
+
|
|
|
+ actionBarTitle = navigationView.findViewById(R.id.action_bar_title);
|
|
|
+ buttonArrow = navigationView.findViewById(R.id.image_view_open_arrow);
|
|
|
+ buttonSearch = navigationView.findViewById(R.id.image_view_search);
|
|
|
+ buttonMenu = navigationView.findViewById(R.id.image_view_menu);
|
|
|
+ buttonBack = navigationView.findViewById(R.id.image_view_back);
|
|
|
+ buttonHome = navigationView.findViewById(R.id.image_view_home);
|
|
|
+ buttonNotification = navigationView.findViewById(R.id.image_view_notification);
|
|
|
+ buttonSetting = navigationView.findViewById(R.id.image_view_setting);
|
|
|
+ buttonClose = navigationView.findViewById(R.id.image_view_close);
|
|
|
+ textButton = navigationView.findViewById(R.id.text_sub);
|
|
|
+ buttonTrash = navigationView.findViewById(R.id.image_view_trash);
|
|
|
+ buttonConfirm = navigationView.findViewById(R.id.image_view_confirm);
|
|
|
+ buttonShare = navigationView.findViewById(R.id.image_view_share);
|
|
|
+ buttonLike = navigationView.findViewById(R.id.image_view_like);
|
|
|
+ buttonBookmark = navigationView.findViewById(R.id.image_view_bookmark);
|
|
|
+ viewBackground = navigationView.findViewById(R.id.layout_background);
|
|
|
|
|
|
setClickListener(buttonBack);
|
|
|
setClickListener(buttonSearch);
|
|
|
@@ -349,23 +349,23 @@ public class NavigationBar {
|
|
|
* show
|
|
|
*/
|
|
|
public void show() {
|
|
|
- setViewVisible(view, true, View.GONE);
|
|
|
+ setViewVisible(navigationView, true, View.GONE);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* hide
|
|
|
*/
|
|
|
public void hide() {
|
|
|
- setViewVisible(view, false, View.GONE);
|
|
|
+ setViewVisible(navigationView, false, View.GONE);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * view 반환
|
|
|
+ * navigationView 반환
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
public View getView() {
|
|
|
- return view;
|
|
|
+ return navigationView;
|
|
|
}
|
|
|
|
|
|
/**
|