Skip to content

Instantly share code, notes, and snippets.

@condesa
Created June 7, 2012 15:35
Show Gist options
  • Save condesa/2889483 to your computer and use it in GitHub Desktop.
Save condesa/2889483 to your computer and use it in GitHub Desktop.
Estructura de un RadioGroup en Androi
<?xml version="1.0" encoding="utf-8"?>
<RadioGroup xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<RadioButton
android:id="@+id/rb_01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Piedra" />
<RadioButton
android:id="@+id/rb_02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Papel" />
<RadioButton
android:id="@+id/rb_03"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Tijera" />
<RadioButton
android:id="@+id/rb_04"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Lagarto Spock" />
</RadioGroup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment