|
|
@@ -4,6 +4,7 @@
|
|
|
package kr.co.zumo.app.lifeplus.util;
|
|
|
|
|
|
import android.support.annotation.ArrayRes;
|
|
|
+import android.support.annotation.ColorRes;
|
|
|
import android.support.annotation.IdRes;
|
|
|
import android.support.annotation.StringRes;
|
|
|
|
|
|
@@ -65,4 +66,14 @@ public class ResourceUtil {
|
|
|
@ArrayRes int resId = App.getInstance().getContext().getResources().getIdentifier(idName, "array", App.getInstance().getPackageName());
|
|
|
return App.getInstance().getResources().getStringArray(resId);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * color 가져오기
|
|
|
+ *
|
|
|
+ * @param colorId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static int getColor(@ColorRes int colorId) {
|
|
|
+ return App.getInstance().getContext().getResources().getColor(colorId);
|
|
|
+ }
|
|
|
}
|