@Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { rb_glyph_fast.setEnabled(isChecked); rb_glyph_slow.setEnabled(isChecked); } });
@Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { rb_normal_key.setEnabled(isChecked); rb_normal_noKey.setEnabled(isChecked); } });
@Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { rb_glyph_key.setEnabled(isChecked); rb_glyph_noKey.setEnabled(isChecked); } });
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); }
@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); }
private void setUnedit() { mNickView.setEnabled(false); mManView.setEnabled(false); mWomanView.setEnabled(false); mDateView.setEnabled(false); }
private void setEdit() { mNickView.setEnabled(true); mManView.setEnabled(true); mWomanView.setEnabled(true); mDateView.setEnabled(true); }
@Override public void setEnabled(boolean enabled) { super.setEnabled(enabled); if (delegate != null) { delegate.init(); } }
@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); } } } }
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 } });
@Override public void setEnabled(boolean enabled) { super.setEnabled(enabled); delegate.getAlphaViewHelper().onEnabledChanged(this, enabled); } }
@Override public void setEnabled(boolean enabled) { super.setEnabled(enabled); delegate.getAlphaViewHelper().onEnabledChanged(this, enabled); } }
@Override public void setEnabled(boolean enabled) { super.setEnabled(enabled); delegate.getAlphaViewHelper().onEnabledChanged(this, enabled); } }
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()); }
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
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);
/** * ピンを選択するための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; }
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);
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; }
@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(); } } });