code: private void animateView(final View target, final int type) {
          if(ANIMATION_EXPAND==type&&target.getVisibility()==VISIBLE){
              return;
          }
          if(ANIMATION_COLLAPSE==type&&target.getVisibility()!=VISIBLE){
              return;
          }
          if(mDefaultAnimExecutor !=null){
              mDefaultAnimExecutor.executeAnim(target,type);
          }
  
      }
docs: Performs either COLLAPSE or EXPAND animation on the target view
  
  @param target the view to animate
  @param type   the animation type, either ExpandCollapseAnimation.COLLAPSE
  or ExpandCollapseAnimation.EXPAND