Code example for RadioGroup

0
		RadioGroup mRadioGroup;
		private Context mContext;
 
		RadioGridAdapter(Context c) {
			mContext = c;
			mRadioGroup = new RadioGroup(c);
		} 
 
		public int getCount() { 
			return intervals.length;
		} 
 
		public Object getItem(int position) {
			return intervals[position];
		} 
 
		public long getItemId(int position) {
			return position;
		} 
 
		@Override