Code example for RadioGroup

Methods: check

0
		if (layoutValue == ViewGroup.LayoutParams.FILL_PARENT) {
			radioGroup.check(fillButton.getId());
		} else if (layoutValue == ViewGroup.LayoutParams.WRAP_CONTENT) {
			radioGroup.check(wrapButton.getId());
		} else { 
			radioGroup.check(pixelButton.getId());
			pixelText.setText(getLayoutPixelValue() + "");
		} 
	} 
	 
	private void parsePixelValue() { 
		try { 
			String text = pixelText.getText().toString();
			int value = Integer.parseInt(text);
			if (updateParam(value)) {
                valueChanged(); 
            } 
		} catch (NumberFormatException e) {
			Log.e(TAG, "Unable to parse number ", e);
		} 
	}