dibesw Active Member Licensed User Longtime User May 19, 2014 #1 HI, I have problems with scale TabHost. I drew a layout into tab of TabHost. This istruction I seems that not scale that is inside of TabHost. Code: Copy Scale.ScaleAll(Activity, True) is that so? Thanks Last edited: May 19, 2014
HI, I have problems with scale TabHost. I drew a layout into tab of TabHost. This istruction I seems that not scale that is inside of TabHost. Code: Copy Scale.ScaleAll(Activity, True) is that so? Thanks
klaus Expert Licensed User Longtime User May 22, 2014 #21 The problem with using only %x and %y is that the text size is not modified, you need to change it too. If you have SupportedOrientations = unspecified you need two layouts one for portrait and one for landscape. The Scale module will scale the loaded layout. Upvote 0
The problem with using only %x and %y is that the text size is not modified, you need to change it too. If you have SupportedOrientations = unspecified you need two layouts one for portrait and one for landscape. The Scale module will scale the loaded layout.
LucaMs Expert Licensed User Longtime User May 22, 2014 #22 Yes, and i have to scale both layouts, but only once, so I was talking to a "static" global variable. I read again your example, surely you will have also provided this there. Many thanks, Klaus Upvote 0
Yes, and i have to scale both layouts, but only once, so I was talking to a "static" global variable. I read again your example, surely you will have also provided this there. Many thanks, Klaus
klaus Expert Licensed User Longtime User May 22, 2014 #23 I looked deeper into the problem with TabHost. Unfortunately, the Scale module doesn't work with TabHost. I don't know how to access the views in a TabHost, there is no simple way like with activities and panels. Upvote 0
I looked deeper into the problem with TabHost. Unfortunately, the Scale module doesn't work with TabHost. I don't know how to access the views in a TabHost, there is no simple way like with activities and panels.
DonManfred Expert Licensed User Longtime User May 23, 2014 #25 @LucaMs In this context you have to use "Nichts" (which is "nothing") and not "Nicht" (which is "not") in german language Upvote 0
@LucaMs In this context you have to use "Nichts" (which is "nothing") and not "Nicht" (which is "not") in german language
LucaMs Expert Licensed User Longtime User May 23, 2014 #26 I learned a little German in 3 holidays and just listening. And without drink some German beer I speak worse. Upvote 0
I learned a little German in 3 holidays and just listening. And without drink some German beer I speak worse.
MaFu Well-Known Member Licensed User Longtime User May 23, 2014 #27 LucaMs said: I learned a little German in 3 holidays and just listening. And without drink some German beer I speak worse. Click to expand... Upvote 0
LucaMs said: I learned a little German in 3 holidays and just listening. And without drink some German beer I speak worse. Click to expand...
klaus Expert Licensed User Longtime User May 23, 2014 #28 Attached you find a workaround for the TabHost scaling. The layouts for the tabs are on panels. The panel height and width are reduced to take into account the tab height and the padding of the internal container. This workaround is not perfect because the padding and tab height are not proportional on different screen sizes. Using panels for the tab layouts allows to scale them with Scale.ScaleView for each panel. Attachments TabHostK.zip TabHostK.zip 16 KB · Views: 260 Upvote 0
Attached you find a workaround for the TabHost scaling. The layouts for the tabs are on panels. The panel height and width are reduced to take into account the tab height and the padding of the internal container. This workaround is not perfect because the padding and tab height are not proportional on different screen sizes. Using panels for the tab layouts allows to scale them with Scale.ScaleView for each panel.
LucaMs Expert Licensed User Longtime User May 23, 2014 #29 Now I download your example, thanks. In my example, the last tab layout is different from the first 3, it contains a panel. Upvote 0
Now I download your example, thanks. In my example, the last tab layout is different from the first 3, it contains a panel.
LucaMs Expert Licensed User Longtime User May 23, 2014 #30 LucaMs said: Now I download your example, thanks. In my example, the last tab layout is different from the first 3, it contains a panel. Click to expand... (ops, they are two different threads ) Upvote 0
LucaMs said: Now I download your example, thanks. In my example, the last tab layout is different from the first 3, it contains a panel. Click to expand... (ops, they are two different threads )