Skip to content
This repository was archived by the owner on Mar 27, 2022. It is now read-only.
This repository was archived by the owner on Mar 27, 2022. It is now read-only.

Is it possible to add both a drawable and text inside the radio button #48

Description

@omerfaran

Hello and thank you very much for your cool library!

Adding a drawable image is easy, and adding text is easy, but I cannot find a way to include them both inside a single radio button

My code I'm experimenting with:

    <co.ceryle.radiorealbutton.RadioRealButton
        android:id="@+id/radioTagCoffee"
        app:rrb_ripple="true"
        app:rrb_backgroundColor="@color/gender_icon_color_transparent"
        app:rrb_rippleColor="#DCDCDC"
        app:rrb_drawable="@drawable/tag_coffee"
        app:rrb_drawableHeight="@dimen/gender_icon_height"
        app:rrb_textColor="@color/black"
        app:rrb_textFillSpace="true"
        app:rrb_text="ssgsgsgs"
        app:rrb_drawablePadding="50dp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>

Thanks in advance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions