Android Question is it possible to change the position of radiobutton circle ?

Addo

Well-Known Member
Licensed User
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?
 

derez

Expert
Licensed User
Longtime User
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

View attachment 108741
 

Attachments

  • My_RB.zip
    10.4 KB · Views: 122
Last edited:
Upvote 0

derez

Expert
Licensed User
Longtime User
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.
 

Attachments

  • My_RB.zip
    10.3 KB · Views: 131
Upvote 0
Top