M manios Active Member Licensed User Longtime User Jul 8, 2011 #1 I wish I could adjust the Textsize in the Spinner!
nfordbscndrd Well-Known Member Licensed User Longtime User Jul 10, 2011 #2 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Jul 11, 2011 #3 The next version (1.6) will support setting the text size and color.
A akaliptos69 Member Licensed User Longtime User Aug 1, 2012 #5 Erel said: The next version (1.6) will support setting the text size and color. Click to expand... I have some reports from layouts 240x320@120dpi (HTC WildFire) that spinners not showing properly: How can I fix it programmatically? I've been trying to find the TextSize Properly for the Spinner and it seems that I miss something.
Erel said: The next version (1.6) will support setting the text size and color. Click to expand... I have some reports from layouts 240x320@120dpi (HTC WildFire) that spinners not showing properly: How can I fix it programmatically? I've been trying to find the TextSize Properly for the Spinner and it seems that I miss something.
mc73 Well-Known Member Licensed User Longtime User Aug 1, 2012 #6 Did you try changing the spinner.height to something big enough instead?
A akaliptos69 Member Licensed User Longtime User Aug 1, 2012 #7 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: spinner1.textsize = 12 Click to expand... 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: spinner1.textsize = 12 Click to expand... 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.
mc73 Well-Known Member Licensed User Longtime User Aug 1, 2012 #8 akaliptos69 said: 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. Click to expand... Perhaps then you could multiply the scale factor once, just for the spinner's height.
akaliptos69 said: 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. Click to expand... Perhaps then you could multiply the scale factor once, just for the spinner's height.
A akaliptos69 Member Licensed User Longtime User Aug 1, 2012 #9 is there a way to get the device width and height on the designer script?
mc73 Well-Known Member Licensed User Longtime User Aug 1, 2012 #10 Did you have a look at this tutorial? http://www.b4x.com/forum/basic4andr...ing-multiple-screens-tips-best-practices.html
Did you have a look at this tutorial? http://www.b4x.com/forum/basic4andr...ing-multiple-screens-tips-best-practices.html
A akaliptos69 Member Licensed User Longtime User Aug 1, 2012 #11 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).
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).
R Roger Garstang Well-Known Member Licensed User Longtime User Aug 1, 2012 #12 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: Code: Copy 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")
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: Code: Copy 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")
R Roger Garstang Well-Known Member Licensed User Longtime User Sep 11, 2012 #13 If still needed I did finish a better Spinner/Combobox using a Label in my Class- http://www.b4x.com/forum/attachment...7311128-class-view-manager-viewmgrexample.zip
If still needed I did finish a better Spinner/Combobox using a Label in my Class- http://www.b4x.com/forum/attachment...7311128-class-view-manager-viewmgrexample.zip