code: public void setClearVisible(boolean visible) {
          if (mClearButtonEnabled) {
              final Drawable d = (visible ? mTappableDrawable : null);
              final Drawable[] drawables = getCompoundDrawables();
              if (drawables != null) {
                  setCompoundDrawables(drawables[0], drawables[1], d, drawables[3]);
              } else {
                  Log.w(TAG, "No clear button is available.");
              }
          }
      }
docs: Sets the visibility of the clear button. The clear button must also be enabled for it to be visible.
  
  @see {@link #setClearButtonEnabled(boolean)}
  @param visible true if the clear button should be visible, otherwise, false.