congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
RadioButton.setEnabled
Code IndexAdd Tabnine to your IDE (free)

How to use
setEnabled
method
in
android.widget.RadioButton

Best Java code snippets using android.widget.RadioButton.setEnabled (Showing top 20 results out of 315)

origin: xfunforx/IngressXglyph

  @Override
  public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
    rb_glyph_fast.setEnabled(isChecked);
    rb_glyph_slow.setEnabled(isChecked);
  }
});
origin: xfunforx/IngressXglyph

  @Override
  public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
    rb_normal_key.setEnabled(isChecked);
    rb_normal_noKey.setEnabled(isChecked);
  }
});
origin: xfunforx/IngressXglyph

  @Override
  public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
    rb_glyph_key.setEnabled(isChecked);
    rb_glyph_noKey.setEnabled(isChecked);
  }
});
origin: mrme2014/MonthView

private void setBtnEnable(boolean b) {
  sure.setEnabled(b);
  //sure.setBackgroundColor(getResources().getColor(b ? R.color.comm_blue : R.color.calendar_radiobtn_unSelected));
  sure.setChecked(b);
}
origin: TrustWallet/trust-wallet-android-source

@Override
public void bind(@Nullable Wallet data, @NonNull Bundle addition) {
  wallet = null;
  address.setText(null);
  defaultAction.setEnabled(false);
  if (data == null) {
    return;
  }
  this.wallet = data;
  address.setText(wallet.address);
  defaultAction.setChecked(addition.getBoolean(IS_DEFAULT_ADDITION, false));
  defaultAction.setEnabled(true);
  deleteAction.setVisibility(
      addition.getBoolean(IS_DEFAULT_ADDITION, false) && !addition.getBoolean(IS_LAST_ITEM, false)
        ? View.GONE : View.VISIBLE);
}
origin: brainysoon/cyberCar

private void setUnedit() {
  mNickView.setEnabled(false);
  mManView.setEnabled(false);
  mWomanView.setEnabled(false);
  mDateView.setEnabled(false);
}
origin: brainysoon/cyberCar

private void setEdit() {
  mNickView.setEnabled(true);
  mManView.setEnabled(true);
  mWomanView.setEnabled(true);
  mDateView.setEnabled(true);
}
origin: AriesHoo/UIWidget

@Override
public void setEnabled(boolean enabled) {
  super.setEnabled(enabled);
  if (delegate != null) {
    delegate.init();
  }
}
origin: EthACKdotOrg/orWall

  @Override
  public void onClick(View v) {
    radioBypass.setEnabled(checkboxInternet.isChecked());
    radioTor.setEnabled(checkboxInternet.isChecked() && Util.isOrbotInstalled(context));
    if (!radioBypass.isChecked() && !radioTor.isChecked()) {
      if (radioTor.isEnabled()) {
        radioTor.setChecked(true);
      } else {
        radioBypass.setChecked(true);
      }
    }
  }
}
origin: it.tidalwave.bluebill/it-tidalwave-android-utilities

 public void propertyChange (final @Nonnull PropertyChangeEvent event) 
  {
   final String propertyName = event.getPropertyName();
   
   if (PROP_VALUE.equals(propertyName))
    {
     select(values, property.getValue(), radiobuttons);
    }
   
   else if (PROP_ENABLED.equals(propertyName))
    {
     for (final RadioButton radioButton : radiobuttons)
      {
       radioButton.setEnabled(property.isEnabled());
      }
    }
   
   // no PROP_VALID, RadioButtons are always valid
  }
});
origin: AriesHoo/UIWidget

  @Override
  public void setEnabled(boolean enabled) {
    super.setEnabled(enabled);
    delegate.getAlphaViewHelper().onEnabledChanged(this, enabled);
  }
}
origin: AriesHoo/UIWidget

  @Override
  public void setEnabled(boolean enabled) {
    super.setEnabled(enabled);
    delegate.getAlphaViewHelper().onEnabledChanged(this, enabled);
  }
}
origin: AriesHoo/UIWidget

  @Override
  public void setEnabled(boolean enabled) {
    super.setEnabled(enabled);
    delegate.getAlphaViewHelper().onEnabledChanged(this, enabled);
  }
}
origin: pili-engineering/QNRTC-Android

private void initView() {
  setContentView(R.layout.activity_main);
  mRoomEditText = (EditText) findViewById(R.id.room_edit_text);
  mCaptureModeRadioGroup = findViewById(R.id.capture_mode_button);
  mCaptureModeRadioGroup.setOnCheckedChangeListener(mOnCheckedChangeListener);
  mScreenCapture = (RadioButton) findViewById(R.id.screen_capture_button);
  mCameraCapture = (RadioButton) findViewById(R.id.camera_capture_button);
  mOnlyAudioCapture = (RadioButton) findViewById(R.id.audio_capture_button);
  mMutiTrackCapture = findViewById(R.id.muti_track_button);
  SharedPreferences preferences = getSharedPreferences(getString(R.string.app_name), Context.MODE_PRIVATE);
  String roomName = preferences.getString(Config.ROOM_NAME, Config.PILI_ROOM);
  int captureMode = preferences.getInt(Config.CAPTURE_MODE, Config.CAMERA_CAPTURE);
  if (QNScreenCaptureUtil.isScreenCaptureSupported()) {
    if (captureMode == Config.SCREEN_CAPTURE) {
      mScreenCapture.setChecked(true);
    } else if (captureMode == Config.CAMERA_CAPTURE) {
      mCameraCapture.setChecked(true);
    } else if (captureMode == Config.ONLY_AUDIO_CAPTURE){
      mOnlyAudioCapture.setChecked(true);
    } else {
      mMutiTrackCapture.setChecked(true);
    }
  } else {
    mScreenCapture.setEnabled(false);
  }
  mRoomEditText.setText(roomName);
  mRoomEditText.setSelection(roomName.length());
}
origin: heinrichreimer/android-issue-reporter

  int radioButtonPaddingStart = getResources().getDimensionPixelSize(R.dimen.air_radio_button_padding_start);
  setOptionUseAccountMarginStart(-2 * baseline - radioButtonPaddingStart);
  optionUseAccount.setEnabled(false);
  optionAnonymous.setVisibility(View.GONE);
} else {
  setOptionUseAccountMarginStart(0);
  optionUseAccount.setEnabled(true);
  optionUseAccount.setOnClickListener(new View.OnClickListener() {
    @Override
origin: CUTR-at-USF/OpenTripPlanner-for-Android

  mBtnModeRentedBike.setEnabled(true);
  mBtnModeRentedBike.setChecked(true);
  mBtnModeBike.setEnabled(false);
} else if (!traverseModeSet.getWalk() && traverseModeSet.getBicycle()) {
  mBtnModeBike.setEnabled(true);
  mBtnModeBike.setChecked(true);
  mBtnModeRentedBike.setEnabled(false);
} else {
  mBtnModeBike.setEnabled(true);
  mBtnModeRentedBike.setEnabled(true);
  setBikeOptimizationAdapter(false, false);
origin: DeviceConnect/DeviceConnect-Android

/**
 * ピンを選択するためのRadioButtonを作成します.
 * @param inflater インフレータ
 * @param pin ピン
 * @return RadioButtonのインスタンス
 */
private RadioButton createRadioButton(final LayoutInflater inflater,final FaBoShield.Pin pin) {
  RadioButton radio = (RadioButton) inflater.inflate(R.layout.item_fabo_radio_button_pin, null, false);
  radio.setText(pin.getPinNames()[1]);
  radio.setTag(pin);
  radio.setEnabled(!usedPin(pin.getPinNumber()));
  radio.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
    @Override
    public void onCheckedChanged(final CompoundButton compoundButton, final boolean b) {
      if (b) {
        mSelectedPin = pin;
      }
    }
  });
  return radio;
}
origin: henrichg/PhoneProfilesPlus

mPostEndCount.setEnabled(false);
mEndDateTextView.setEnabled(false);
mRepeatMonthlyByNthDayOfWeek.setEnabled(false);
mRepeatMonthlyByNthDayOfMonth.setEnabled(false);
for (Button button : mWeekByDayButtons) {
  button.setEnabled(false);
mPostEndCount.setEnabled(true);
mEndDateTextView.setEnabled(true);
mRepeatMonthlyByNthDayOfWeek.setEnabled(true);
mRepeatMonthlyByNthDayOfMonth.setEnabled(true);
for (Button button : mWeekByDayButtons) {
  button.setEnabled(true);
origin: okleine/spitfirefox

public void setClientCallback(CoapClientActivity coapClientActivity, SendRequestTask.SpitfirefoxCallback clientCallback){
  if(this.clientCallback != null && isObservationRunning()){
    this.clientCallback.cancelObservation();
  }
  RadioGroup radioGroup = (RadioGroup) coapClientActivity.findViewById(R.id.rad_stop_observation_group);
  if(radioGroup != null) {
    radioGroup.clearCheck();
    RadioButton radStopObservation = (RadioButton) coapClientActivity.findViewById(R.id.rad_stop_observation);
    radStopObservation.setEnabled(true);
    radStopObservation.setVisibility(View.VISIBLE);
  }
  this.clientCallback = clientCallback;
}
origin: CUTR-at-USF/OpenTripPlanner-for-Android

  @Override
  public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
    setBikeOptimizationAdapter(isChecked, true);
    showBikeParameters(isChecked);
    mBtnModeBike.setEnabled(!isChecked);
    updateModes(getSelectedTraverseModeSet());
    if (mOTPApp.getSelectedServer().getOffersBikeRental() && isChecked){
      BikeRentalLoad bikeRentalGetStations = new BikeRentalLoad(mApplicationContext, true,
          MainFragment.this);
      bikeRentalGetStations.execute(mOTPApp.getSelectedServer().getBaseURL());
    }
    if (mBikeRentalStations != null && !isChecked){
      removeBikeStations();
    }
  }
});
android.widgetRadioButtonsetEnabled

Popular methods of RadioButton

  • setChecked
  • isChecked
  • setText
  • setOnClickListener
  • setOnCheckedChangeListener
  • <init>
  • getId
  • setId
  • getText
  • setVisibility
  • setButtonDrawable
  • setTag
  • setButtonDrawable,
  • setTag,
  • setTextColor,
  • setLayoutParams,
  • setBackgroundDrawable,
  • getTag,
  • setBackgroundColor,
  • setTextSize,
  • onDraw

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • startActivity (Activity)
  • setScale (BigDecimal)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • JComboBox (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now