Skip to content

Instantly share code, notes, and snippets.

@vikramkakkar
Created March 22, 2015 03:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vikramkakkar/dcb157a2b70af229517d to your computer and use it in GitHub Desktop.
Save vikramkakkar/dcb157a2b70af229517d to your computer and use it in GitHub Desktop.
Sample
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:orientation="horizontal"
style="@style/RadioGroupStyle">
<RadioButton
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="A"
style="@style/RadioGroupFirstItemStyle"/>
<RadioButton
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="B"
style="@style/RadioGroupMiddleItemStyle"/>
<RadioButton
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="C"
style="@style/RadioGroupLastItemStyle"/>
</RadioGroup>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment