Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radio button shows circle on the left #90

Open
JcDenton86 opened this issue Jun 12, 2018 · 3 comments
Open

Radio button shows circle on the left #90

JcDenton86 opened this issue Jun 12, 2018 · 3 comments

Comments

@JcDenton86
Copy link

JcDenton86 commented Jun 12, 2018

Hi,

I am using this library and while is shows the segments, within it shows the circles of the radio buttons.
I am attaching a screenshot with the issue.

screen shot 2018-06-12 at 09 41 07

and here is the xml code

<info.hoang8f.android.segmented.SegmentedGroup xmlns:segmentedgroup="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent"
        android:layout_height="30dp"
        android:gravity="center_horizontal"
        android:orientation="horizontal"
        segmentedgroup:sc_border_width="2dp"
        segmentedgroup:sc_checked_text_color="@color/whiteColor"
        segmentedgroup:sc_corner_radius="8dp"
        segmentedgroup:sc_tint_color="@color/colorPrimary">

        <RadioButton
            style="@style/RadioButton"
            android:layout_width="100dp"
            android:layout_height="match_parent"
            android:checked="true"
            android:text="test"
            android:textSize="14sp" />

        <RadioButton
            style="@style/RadioButton"
            android:layout_width="100dp"
            android:layout_height="match_parent"
            android:text="test"
            android:textSize="14sp" />
    </info.hoang8f.android.segmented.SegmentedGroup>

any ideas why this is happening?

thank you in advance

@JcDenton86 JcDenton86 changed the title Radio button shows circle on the right Radio button shows circle on the left Jun 12, 2018
@shinwan2
Copy link

Hi, I am also using this library.

After I migrated to AndroidX, RadioButton would always show circle button in API 19. Setting android:button="@null" or setButtonDrawable(null) did not work. I have found this StackOverflow thread helpful, setting to empty state list drawable works.

radioButton.buttonDrawable = StateListDrawable()

@sharp-edge
Copy link

Hi, I am also using this library.

After I migrated to AndroidX, RadioButton would always show circle button in API 19. Setting android:button="@null" or setButtonDrawable(null) did not work. I have found this StackOverflow thread helpful, setting to empty state list drawable works.

radioButton.buttonDrawable = StateListDrawable()

This solution fixed it, thanks a lot.

@emauro
Copy link

emauro commented Nov 27, 2019

Same for me. Fixed it.

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

No branches or pull requests

4 participants