public void setColorPressedResId(int colorResId) {
   setColorPressed(getResources().getColor(colorResId));
 }
Пример #2
0
 public static void setFabBtnColor(Activity activity, FloatingActionButton fab) {
   // 更新FAB的颜色
   fab.setColorNormal(getThemeColor(activity));
   fab.setColorPressed(getThemeColor(activity));
   fab.setColorRipple(getThemeColor(activity));
 }
 public void setMenuButtonColorPressed(int color) {
   mMenuColorPressed = color;
   mMenuButton.setColorPressed(color);
 }