Addo Well-Known Member Licensed User Longtime User Feb 25, 2021 #1 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?
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?
Erel B4X founder Staff member Licensed User Longtime User Feb 26, 2021 #2 Mark your app with: Code: Copy SetApplicationAttribute (android:supportsRtl, true) It should swap the whole interface based on the device locale. Another option is to use a RadioButton without text and a Label. Upvote 0
Mark your app with: Code: Copy SetApplicationAttribute (android:supportsRtl, true) It should swap the whole interface based on the device locale. Another option is to use a RadioButton without text and a Label.
derez Expert Licensed User Longtime User Feb 26, 2021 #3 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: Copy ... ' 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 My_RB.zip 10.4 KB · Views: 489 Last edited: Feb 26, 2021 Upvote 0
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: Copy ... ' rb.checked = true' RB1_change(1) ... Sub RB1_change(k As Int) RB1_Checked(rb1(k).label1.text) End Sub View attachment 108741
derez Expert Licensed User Longtime User Feb 26, 2021 #4 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 My_RB.zip 10.3 KB · Views: 517 Upvote 0
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.