Skip to content

antonholmberg/subtitle-radio-button

Repository files navigation

Subtitle Radio Button

Simple radio button with an additional subtitle.

Usage

<?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"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical">
    <org.grunkspin.subtitleradiobutton.SubtitleRadioButton
        app:titleText="Title"
        app:titleTextAppearance="@style/TextAppearance.AppCompat.Body2"
        app:subtitleText="Subtitle"
        app:subtitleTextAppearance="@style/TextAppearance.AppCompat.Body1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/>
</LinearLayout>

It uses the text internally so setting text will override the title and subtitle.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages