/** * helper method to decide for the correct color * * @param ctx * @return */ public int getIconColor(Context ctx) { int iconColor; if (this.isEnabled()) { iconColor = ColorHolder.color(getIconColor(), ctx, R.attr.material_drawer_primary_icon, R.color.material_drawer_primary_icon); } else { iconColor = ColorHolder.color(getDisabledIconColor(), ctx, R.attr.material_drawer_hint_icon, R.color.material_drawer_hint_icon); } return iconColor; }
/** * helper method to decide for the correct color * * @param ctx * @return */ public int getIconColor(Context ctx) { int iconColor; if (this.isEnabled()) { iconColor = ColorHolder.color(getIconColor(), ctx, R.attr.material_drawer_primary_icon, R.color.material_drawer_primary_icon); } else { iconColor = ColorHolder.color(getDisabledIconColor(), ctx, R.attr.material_drawer_hint_icon, R.color.material_drawer_hint_icon); } return iconColor; }