當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。