Code example for CompoundButton

Methods: getId

0
			if(mCheckedId != -1) {
				setCheckedStateForView(mCheckedId, false);
			} 
			mProtectFromCheckedChange = false;
			 
			int id = buttonView.getId();
			setCheckedId(id);
		} 
	} 
	 
	private class PassThroughHierarchyChangeListener implements ViewGroup.OnHierarchyChangeListener {
		private ViewGroup.OnHierarchyChangeListener mOnHierarchyChangeListener;
		 
		public void onChildViewAdded(View parent, View child) {
			if(DEBUG)
				Log.d(TAG, "onChildViewAdded : parent = " + parent + ", child = " + child);
			 
			if(parent == TableRadioGroup.this && child instanceof TableRow) {
				final TableRow row = (TableRow)child;
 
				for(int j = 0; j < row.getChildCount(); j++){