R
R
Ruslan2016-07-25 21:04:03
Android
Ruslan, 2016-07-25 21:04:03

How to change color of RadioButton on API 16?

There is a radiobutton:

<RadioGroup
        android:id="@+id/radio_group2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

      <RadioButton
            android:id="@+id/example"
            android:checked="false"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/example"
            android:buttonTint="@color/colorRadioButton"
            style="@style/MRadioButton.Purple" />
</RadioGroup>

I wanted to change the default color, set buttonTint="@color/colorRadioButton", everything works on a phone with version 5.1+.
But on 4.3 in any way. I tried to separately register the style and set the style="@style/MRadioButton.Purple" parameter. Did not work.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question