RadioRealButton icon indicating copy to clipboard operation
RadioRealButton copied to clipboard

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

Open omerfaran opened this issue 4 years ago • 0 comments

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

omerfaran avatar Jan 12 '20 09:01 omerfaran