Monday, July 9, 2012

RadioButton and RadioGroup in Andorid

A radio button is a two-states button that can be either checked or unchecked. When the radio button is unchecked, the user can press or click it to check it. However, contrary to a CheckBox, a radio button cannot be unchecked by the user once checked.

Radio buttons are normally used together in a RadioGroup. When several radio buttons live inside a radio group, checking one radio button unchecks all the others.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android=""
 android:text="Option 1"
 android:text="Option 2"
 android:text="Option 3"
 android:text="Option 4"

No comments:

Post a Comment