is there any way to change the circle position in Radiobutton from left to right?
I have tried to set the horizontal alignment to Right instead of left but the text position only changed to the right, not the circle.
any idea if it's possible to change the circle position in radiobutton from left to right?
Attached find a custom view which enables you to put the circle on top of the legend or to the right of the legend. EDIT: see next post !
If you need to check a RB by code - you'll have to add sub to change the "checked" in the other RBs"
instead of rb.checked = true write
B4X:
...
' rb.checked = true'
RB1_change(1)
...
Sub RB1_change(k As Int)
RB1_Checked(rb1(k).label1.text)
End Sub
A simpler solution, in which the Radiobutton behaviour is done in the class, no need to arrange the objects in arrays and a simple sub for check by code.