Skip to content

Instantly share code, notes, and snippets.

@chelseatroy
Created July 26, 2020 15:27
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 chelseatroy/0b67669db2c7dbdd55604d1d05de955c to your computer and use it in GitHub Desktop.
Save chelseatroy/0b67669db2c7dbdd55604d1d05de955c to your computer and use it in GitHub Desktop.
Custom View
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<RadioGroup
android:id="@+id/radio_group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingBottom="10dp"
android:paddingTop="10dp">
<RadioButton
android:id="@+id/severity_none"
android:paddingRight="8dp"
android:textSize="20sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/none" />
<RadioButton
android:id="@+id/severity_mild"
android:paddingRight="8dp"
android:textSize="20sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/mild" />
<RadioButton
android:id="@+id/severity_moderate"
android:paddingRight="8dp"
android:textSize="20sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/moderate" />
<RadioButton
android:id="@+id/severity_severe"
android:paddingRight="8dp"
android:textSize="20sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/severe" />
<RadioButton
android:id="@+id/severity_very_severe"
android:paddingRight="8dp"
android:textSize="20sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/very_severe" />
</RadioGroup>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment