code: public void setIndicatorVisibility(IndicatorVisibility visibility){
          if(visibility == IndicatorVisibility.Visible){
              setVisibility(View.VISIBLE);
          }else{
              setVisibility(View.INVISIBLE);
          }
          resetDrawable();
      }
docs: set the visibility of indicator.
  @param visibility