void updateText(int state) { if (!states.isInState(state)) return; if (title != null) { title.setText(states.getTitle()); if (states.getTitlecolor() != null) title.setTextColor(states.getTitlecolor()); if (states.getShadowColor() != null) title.setShadowColor(states.getShadowColor()); } }