Code example for RadioGroup

Methods: setOnCheckedChangeListener

0
	/** 
	 * 设置单选按钮组的选中变化监听器 
	 */ 
	public void setOnCheckedChangedListener( 
			OnCheckedChangeListener aOnCheckedChangeListener) {
		_fRadioGroup.setOnCheckedChangeListener(aOnCheckedChangeListener);
	} 
 
	/** 
	 * 获取被选中的单选按钮的Id 
	 *  
	 * @return 被选中的单选按钮的Id 
	 */ 
	public int getCheckedRadioButtonId() { 
		return _fRadioGroup.getCheckedRadioButtonId();
	} 
} 
Experience pair programming with AI  Get Codota for Java