android RadioButton issue in android 4

后端 未结 4 1608
星月不相逢
星月不相逢 2021-02-20 02:27

I have a simple application. The screen is build inside a RelativeLayout. I have more LinearLayout(s), one of them shows the 2 RadioButton(s), like this:

               


        
相关标签:
4条回答
  • 2021-02-20 02:42

    I solved this by setting the paddingLeft of the RadioButton to some value that made it look proper. I've only tested this on my Samsung device and not any other devices so I'm not sure what that will look like on your devices that "worked".

    0 讨论(0)
  • 2021-02-20 02:43

    I was experiencing the same problem. I have solved this by NOT setting paddingLeft on RadioButtons and CheckBoxes - leaving default value. paddingLeft was counted from the drawable on all phones and from left corner on Galaxy S3. Also setting background was causing the same bug on Galaxy S3. After leaving default values it's now usable everywhere.

    0 讨论(0)
  • 2021-02-20 02:45

    This might be too late, but i had the same problem and it was solved by specifying a android:drawableRight or android:drawableLeft, instead of android:button which is set by default

    0 讨论(0)
  • 2021-02-20 02:47

    Testing on a Rugby Pro and a GS5, I found that if you want to set the background color, you have to do it in the java, rather than in the XML. If you do it in XML, Samsung devices have an issue and cause the overlap.

    0 讨论(0)
提交回复
热议问题