当前位置: 首页>>代码示例>>Java>>正文


Java RadioGroup.findViewById方法代码示例

本文整理汇总了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;
}
 
开发者ID:axlecho,项目名称:tuxguitar,代码行数:12,代码来源:TGStrokeDialog.java

示例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;
}
 
开发者ID:axlecho,项目名称:tuxguitar,代码行数:13,代码来源:TGMeasureAddDialog.java

示例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);
    }
}
 
开发者ID:dreaminglion,项目名称:iosched-reader,代码行数:11,代码来源:AccountFragment.java

示例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 + "元)");
}
 
开发者ID:didikee,项目名称:AndroidDonate,代码行数:8,代码来源:MainActivity.java

示例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;
}
 
开发者ID:axlecho,项目名称:tuxguitar,代码行数:12,代码来源:TGGraceDialog.java

示例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;
}
 
开发者ID:axlecho,项目名称:tuxguitar,代码行数:11,代码来源:TGGraceDialog.java

示例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;
}
 
开发者ID:axlecho,项目名称:tuxguitar,代码行数:11,代码来源:TGTempoDialog.java

示例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;
}
 
开发者ID:axlecho,项目名称:tuxguitar,代码行数:12,代码来源:TGHarmonicDialog.java

示例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;
}
 
开发者ID:axlecho,项目名称:tuxguitar,代码行数:13,代码来源:TGTrillDialog.java

示例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;
}
 
开发者ID:axlecho,项目名称:tuxguitar,代码行数:13,代码来源:TGTremoloPickingDialog.java

示例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;
}
 
开发者ID:axlecho,项目名称:tuxguitar,代码行数:11,代码来源:TGTripletFeelDialog.java


注:本文中的android.widget.RadioGroup.findViewById方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。