Actually there is no connection between the number of variants and AutoScaleAll.
AutoScaleAll scales the chosen variant based on the device actual size. I recommend you to start with a single standard variant and use the designer script to make your layout flexible.
I'm doing other tests.
At this time, I created a new project:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="15"/>
(my devices: S.O. 4.0.4 - 480x800 1.5 - scales [ 240 ] ).
1) I created a layout for the Main, using the standard ( 320x480 -1);
2) uploaded a second layout from my old app that I built with variant 480x800 -1.5.
(I had the terror of use F5 and compare the Abstact designer with my device connected , so I did not ).
RESULTS :
a) Using AutoScaleAll in the script of each layout:
Main layout: it becomes about 90% of the display (I see a black stripe high 10% at the bottom)
Second layout: it becomes about 103% of the screen (just like in Abstact Designer)
b) Using Scale.Initialize + Scale.ScaleAll (Klaus) in the Main layout and Scale.SetReferenceLayout (480 , 800, 1.5) + Scale.ScaleAll in the OLD layout everything seems ok.
But I have not yet tried on emulators with different resolutions, for the moment
I 'll try again, then, to incorporate Scale.SetReferenceLayout (480 , 800, 1.5) in all the activities of my old project (I already done two days ago, but did not give the expected around results and I think that was so because NOW the title of the activity is lowest and without an icon!)
I'm afraid I'll have to redo my whole project again
Best regards
P.S. I have tested (b) with 3 emulators:
320x480 160
480x800 240
240x432 120
The proportions are respected in all 3 cases.
Only a few pictures does not have a beautiful appearance. Starting from the standard (320 ...) what might be the ideal size of an image for a larger home button to put on (in my app, not the device)?
I am using LoadBitmap for the ImageView, then resize with Scale.ScaleAll.
Could you suggest to me about the ideal source size of the images? (grr my english, sorry!)
Should I use "InitializeSample" instead?
Again, they are already good enough.
Thanks again