Skip to content
This repository has been 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

Open
omerfaran opened this issue Jan 12, 2020 · 0 comments
Open

Comments

@omerfaran
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant