本文整理汇总了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;
}