@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getActivity() instanceof ColorChange) { this.colorChange = (ColorChange) getActivity(); } cuurentColor = ColorTool.getColor(R.color.default_color, getActivity()); colorChange.onColorChange(cuurentColor, ColorTool.colorBurn(cuurentColor)); EventBus.getDefault().register(this); mFragmentManager = getChildFragmentManager(); }
public int getColor(String color) { return ColorTool.getColor(color); }