예제 #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();
 }
예제 #2
0
 public int getColor(String color) {
   return ColorTool.getColor(color);
 }