code: public void setViewEnabled(boolean enable) {
          if (hasState(ENABLED) != enable) {
              if (DBG) Log.v(TAG, "enable - " + enable);
              if (enable) {
                  addState(ENABLED);
              } else {
                  clearState(ENABLED);
              }
          }
      }
docs: Enable/disable this view. If disabled, any notification delivered here will be ignored.
  
  @param enable