Me too. Below is a screen shot of a layout for a 10.1" tablet with 1280x800 (160 dpi) resolution.
The Spinner text looks funny compared to all the other views, but that's the size I'm stuck with.
It cannot be done since the height and width are set by a scale factor. The problem is that the text inside the spinner is not setting accordingly. I found a solution:
but after applying that the list text size turn 12 as well causing problems. I don't have a problem with the list text size. The problem is only for the selected value appearing on the spinner.
It cannot be done since the height and width are set by a scale factor. The problem is that the text inside the spinner is not setting accordingly. I found a solution:
but after applying that the list text size turn 12 as well causing problems. I don't have a problem with the list text size. The problem is only for the selected value appearing on the spinner.
Yes, I used it to go on with the designing in order to cover all possible resolutions... and it works great from 320x480 up to 960x540 (those are the ones tested and confirmed ... but on smaller or larger than these it seems to have a problem... Small like the ones on my example show the layout stated above on the pic, larger needs improvement on the images (totally different discussion).
I had to override Font Scale in my View Manager class (In forums here) to get good results on fonts with spinners. No matter how I adjusted the size it always came up wrong. Other controls sized ok finally after much hair pulling and tweaking and work with font scaling...spinners not so much.
Get Font scale with code below and reverse the scale with dividing your text size by it:
B4X:
Dim Ref As Reflector
Dim FontScale As Float
Ref.Target = Ref.GetContext
Ref.Target = Ref.RunMethod("getResources")
Ref.Target=Ref.RunMethod("getConfiguration")
FontScale= Ref.GetField("fontScale")