|
|
@@ -4,6 +4,7 @@
|
|
|
package kr.co.zumo.app.lifeplus.helper;
|
|
|
|
|
|
import android.content.Context;
|
|
|
+import android.graphics.drawable.Drawable;
|
|
|
import android.support.annotation.StringRes;
|
|
|
import android.support.v4.graphics.drawable.DrawableCompat;
|
|
|
import android.view.LayoutInflater;
|
|
|
@@ -261,8 +262,6 @@ public class NavigationBar {
|
|
|
|
|
|
setBackgroundTransparent(newBuilder.isTransparentBackground);
|
|
|
|
|
|
- setWhiteUi(newBuilder.isWhite);
|
|
|
-
|
|
|
setHomeVisible(newBuilder.isVisibleHome);
|
|
|
mapClickListener(buttonHome, newBuilder.homeListener);
|
|
|
|
|
|
@@ -304,6 +303,7 @@ public class NavigationBar {
|
|
|
setBookmarkVisible(newBuilder.isVisibleBookmark);
|
|
|
mapClickListener(buttonBookmark, newBuilder.bookmarkListener);
|
|
|
|
|
|
+ setWhiteUi(newBuilder.isWhite);
|
|
|
builder = newBuilder;
|
|
|
}
|
|
|
|
|
|
@@ -345,6 +345,17 @@ public class NavigationBar {
|
|
|
DrawableCompat.setTint(buttonBookmark.getDrawable(), color);
|
|
|
}
|
|
|
|
|
|
+ private void setWhiteUi(Drawable drawable, boolean isWhite) {
|
|
|
+ int color;
|
|
|
+ if (isWhite) {
|
|
|
+ color = ResourceUtil.getColor(R.color.CFFFFFF);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ color = ResourceUtil.getColor(R.color.C000000);
|
|
|
+ }
|
|
|
+ DrawableCompat.setTint(drawable, color);
|
|
|
+ }
|
|
|
+
|
|
|
/***********************************
|
|
|
* public
|
|
|
***********************************/
|
|
|
@@ -393,7 +404,7 @@ public class NavigationBar {
|
|
|
buttonConfirm.setImageResource(R.drawable.icon_bucket_complete_dim);
|
|
|
}
|
|
|
|
|
|
- setWhiteUi(builder.isWhite);
|
|
|
+ setWhiteUi(buttonConfirm.getDrawable(), builder.isWhite);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -407,7 +418,7 @@ public class NavigationBar {
|
|
|
}
|
|
|
else {
|
|
|
buttonLike.setImageResource(R.drawable.icon_header_like_wh_off);
|
|
|
- setWhiteUi(builder.isWhite);
|
|
|
+ setWhiteUi(buttonLike.getDrawable(), builder.isWhite);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -422,7 +433,7 @@ public class NavigationBar {
|
|
|
}
|
|
|
else {
|
|
|
buttonBookmark.setImageResource(R.drawable.icon_header_bookmark_wh_off);
|
|
|
- setWhiteUi(builder.isWhite);
|
|
|
+ setWhiteUi(buttonBookmark.getDrawable(), builder.isWhite);
|
|
|
}
|
|
|
}
|
|
|
|