Exemplo n.º 1
0
 @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();
 }
Exemplo n.º 2
0
 public int getColor(String color) {
   return ColorTool.getColor(color);
 }