private void closePopView() { if (View.VISIBLE == popView.getVisibility()) { actionView.setAction(new MoreAction(), ActionView.ROTATE_COUNTER_CLOCKWISE); popView.clearAnimation(); popView.startAnimation(pop_out); pop_background.setVisibility(View.INVISIBLE); } }
private void btnClickMore() { if (View.VISIBLE == popView.getVisibility()) { closePopView(); } else { actionView.setAction(new CloseAction(), ActionView.ROTATE_COUNTER_CLOCKWISE); popView.clearAnimation(); popView.startAnimation(pop_in); pop_background.setVisibility(View.VISIBLE); } }
public void actionMore() { switch (++flag) { case 1: actionView.setAction(new BackAction(), ActionView.ROTATE_COUNTER_CLOCKWISE); break; case 2: actionView.setAction(new MoreAction(), ActionView.ROTATE_COUNTER_CLOCKWISE); break; case 3: actionView.setAction(new DrawerAction(), ActionView.ROTATE_COUNTER_CLOCKWISE); break; case 4: actionView.setAction(new PlusAction(), ActionView.ROTATE_COUNTER_CLOCKWISE); break; case 5: actionView.setAction(new CloseAction(), ActionView.ROTATE_COUNTER_CLOCKWISE); break; } if (flag == 5) flag = 0; }