本文整理匯總了Java中android.widget.RadioGroup.findViewById方法的典型用法代碼示例。如果您正苦於以下問題:Java RadioGroup.findViewById方法的具體用法?Java RadioGroup.findViewById怎麽用?Java RadioGroup.findViewById使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.widget.RadioGroup
的用法示例。
在下文中一共展示了RadioGroup.findViewById方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: findSelectedDuration
import android.widget.RadioGroup; //導入方法依賴的package包/類
public int findSelectedDuration(View view) {
RadioGroup radioGroup = (RadioGroup) view.findViewById(R.id.stroke_dlg_duration_group);
int radioButtonId = radioGroup.getCheckedRadioButtonId();
if( radioButtonId != -1 ) {
RadioButton radioButton = (RadioButton) radioGroup.findViewById(radioButtonId);
if( radioButton != null ) {
return ((Integer)radioButton.getTag()).intValue();
}
}
return 0;
}
示例2: findSelectedMeasureNumber
import android.widget.RadioGroup; //導入方法依賴的package包/類
public int findSelectedMeasureNumber(View view) {
RadioGroup optionsGroup = (RadioGroup) view.findViewById(R.id.measure_add_dlg_options_group);
int radioButtonId = optionsGroup.getCheckedRadioButtonId();
if( radioButtonId != -1 ) {
RadioButton radioButton = (RadioButton) optionsGroup.findViewById(radioButtonId);
if( radioButton != null ) {
return ((Integer)radioButton.getTag()).intValue();
}
}
return 1;
}
示例3: onCheckedChanged
import android.widget.RadioGroup; //導入方法依賴的package包/類
@Override
public void onCheckedChanged(RadioGroup group, int checkedId) {
RadioButton rb = (RadioButton) group.findViewById(checkedId);
mSelectedAccount = rb.getText().toString();
LOGD(TAG, "Checked: " + mSelectedAccount);
if (mActivity instanceof WelcomeFragmentContainer) {
((WelcomeFragmentContainer) mActivity).setPositiveButtonEnabled(true);
}
}
示例4: onCheckedChanged
import android.widget.RadioGroup; //導入方法依賴的package包/類
@Override
public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {
RadioButton checkedRadioButton = (RadioButton) group.findViewById(checkedId);
String text = checkedRadioButton.getText().toString().trim();
currentMoney = Integer.valueOf(text.replace("元", "").trim());
btAlipayCustom.setText("支付寶捐贈(" + currentMoney + "元)");
}
示例5: findSelectedOnBeat
import android.widget.RadioGroup; //導入方法依賴的package包/類
public boolean findSelectedOnBeat(View view) {
RadioGroup radioGroup = (RadioGroup) view.findViewById(R.id.grace_dlg_position_group);
int radioButtonId = radioGroup.getCheckedRadioButtonId();
if( radioButtonId != -1 ) {
RadioButton radioButton = (RadioButton) radioGroup.findViewById(radioButtonId);
if( radioButton != null ) {
return ((Boolean)radioButton.getTag()).booleanValue();
}
}
return false;
}
示例6: findSelectedOption
import android.widget.RadioGroup; //導入方法依賴的package包/類
public int findSelectedOption(RadioGroup radioGroup, int defaultValue) {
int radioButtonId = radioGroup.getCheckedRadioButtonId();
if( radioButtonId != -1 ) {
RadioButton radioButton = (RadioButton) radioGroup.findViewById(radioButtonId);
if( radioButton != null ) {
return ((Integer)radioButton.getTag()).intValue();
}
}
return defaultValue;
}
示例7: parseApplyTo
import android.widget.RadioGroup; //導入方法依賴的package包/類
public Integer parseApplyTo(RadioGroup radioGroup, Integer defaultValue) {
int radioButtonId = radioGroup.getCheckedRadioButtonId();
if( radioButtonId != -1 ) {
RadioButton radioButton = (RadioButton) radioGroup.findViewById(radioButtonId);
if( radioButton != null ) {
return ((Integer)radioButton.getTag()).intValue();
}
}
return defaultValue;
}
示例8: findSelectedHarmonic
import android.widget.RadioGroup; //導入方法依賴的package包/類
public int findSelectedHarmonic(View view) {
RadioGroup radioGroup = (RadioGroup) view.findViewById(R.id.harmonic_dlg_type_group);
int radioButtonId = radioGroup.getCheckedRadioButtonId();
if( radioButtonId != -1 ) {
RadioButton radioButton = (RadioButton) radioGroup.findViewById(radioButtonId);
if( radioButton != null ) {
return ((Integer)radioButton.getTag()).intValue();
}
}
return TGEffectHarmonic.TYPE_NATURAL;
}
示例9: findSelectedDuration
import android.widget.RadioGroup; //導入方法依賴的package包/類
public int findSelectedDuration(View view) {
RadioGroup optionsGroup = (RadioGroup) view.findViewById(R.id.trill_dlg_duration_group);
int radioButtonId = optionsGroup.getCheckedRadioButtonId();
if( radioButtonId != -1 ) {
RadioButton radioButton = (RadioButton) optionsGroup.findViewById(radioButtonId);
if( radioButton != null ) {
return ((Integer)radioButton.getTag()).intValue();
}
}
return TGDuration.EIGHTH;
}
示例10: findSelectedDuration
import android.widget.RadioGroup; //導入方法依賴的package包/類
public int findSelectedDuration(View view) {
RadioGroup optionsGroup = (RadioGroup) view.findViewById(R.id.tremolo_picking_dlg_duration_group);
int radioButtonId = optionsGroup.getCheckedRadioButtonId();
if( radioButtonId != -1 ) {
RadioButton radioButton = (RadioButton) optionsGroup.findViewById(radioButtonId);
if( radioButton != null ) {
return ((Integer)radioButton.getTag()).intValue();
}
}
return TGDuration.EIGHTH;
}
示例11: parseTripletFeelValue
import android.widget.RadioGroup; //導入方法依賴的package包/類
public Integer parseTripletFeelValue(RadioGroup radioGroup) {
int radioButtonId = radioGroup.getCheckedRadioButtonId();
if( radioButtonId != -1 ) {
RadioButton radioButton = (RadioButton) radioGroup.findViewById(radioButtonId);
if( radioButton != null ) {
return ((Integer)radioButton.getTag()).intValue();
}
}
return TGMeasureHeader.TRIPLET_FEEL_NONE;
}