You can use CSBuilder to change the alignment. This code is from B4XPreferencesDialog:
B4X:
Dim options As List
options.Initialize
Dim cs As CSBuilder
For Each opt As String In original
options.Add(cs.Initialize.Alignment("ALIGN_OPPOSITE").Typeface(Typeface.DEFAULT_BOLD).Append(opt).PopAll)
Next
The options are: ALIGN_NORMAL, ALIGN_OPPOSITE or ALIGN_CENTER
Thanks
It worked fine.
But is there a way to place the opening arrow on the left?
And do you have an idea why the attached code did not work when the value of opt was "עברית"
B4X:
For Each opt As String In original
If opt="עברית" Then
options.Add(cs.Initialize.Alignment("ALIGN_OPPOSITE").Typeface(Typeface.DEFAULT_BOLD).Append(opt).PopAll)
Else
options.Add(cs.Initialize.Alignment("ALIGN_NORMAL").Typeface(Typeface.DEFAULT_BOLD).Append(opt).PopAll)
End If
Next
No simple way. You can try to replace the spinner background with your own drawable. I would have used a custom view for this. It shouldn't be too complicated to create one.
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.