Android Question B4A RadioButton circle outline color

Discussion in 'Android Questions' started by Lori Scott, Oct 26, 2018.

  1. Lori Scott

    Lori Scott Member Licensed User

    I have an app with a white background. When I insert radio buttons, they have white text and white circles around the buttons by default, so only the selected circle (which changes color) shows up. I can use the Text properties to change the radio button font color to black so that the text for both options is visible but the circle outlines don't turn black with the text, so still only the circle for the selected option is visible. This makes it a little less clear that these are two options. To make the circles for both radio buttons visible, I can change the background properties of the radio buttons (or the panel they are in) to a darker color so the white circle outlines show up. But what I really want is for the circle outlines to be black against the white background, like the text. I've tried changing the RadioButton Properties Border Color, but that controls a rectangular border around the entire radio button (circle and text), not the circle itself.

    How can I change the properties of the circle in the radio button?
     
  2. Semen Matusovskiy

    Semen Matusovskiy Well-Known Member Licensed User

    Radio buttons like other buttons support SetColorTintList. This means that you can set different colors for different states
    There is a lot of samples on forum. It's not important for which kind of button ("Button", "CheckBox" or "RadioButton").
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice