Code example for RadioGroup

Methods: getChildAt

0
 
		@Override 
		protected void onPostExecute(Void result) {
			super.onPostExecute(result);
			addButtonByNet(); 
			((RadioButton)tv_all.getChildAt(0)).setChecked(true);
			dismissDialog(0);
		} 
	  } 
	@Override 
	public void onCheckedChanged(RadioGroup group, int checkedId) {
		Integer newInteger = Integer.valueOf(checkedId);
		int i = radioList.indexOf(newInteger);
		if (i != mCurRadioIndex) {
			mCurRadioIndex = i;
			List<TvChannel> loList = (List<TvChannel>)mTvChanenList.get(i);
			mTvAdapter.notifyDataSetChanged(loList);
		} 
	} 
}