Code example for CompoundButton

Methods: getId

0
			if(mCheckedId != -1) {
				setCheckedStateForView(mCheckedId, false);
			} 
			mProtectFromCheckedChange = false;
			 
			int id = buttonView.getId();
			Log.d(TAG, "id = " + id);
			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 == RelativeRadioGroup.this && child instanceof RadioButton) {
				int id = child.getId();								
				if(id == View.NO_ID) {