Need to use variants

bluedude

Well-Known Member
Licensed User
Longtime User
Hi,

Do you need to provide layout variants or does the basic layout scale well on all devices?

Just testing on a ViewSonic 7 inch and my app. does not scale at all.

I though one layout could serve the purpose although it wouldn't be pretty.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
A single variant will not look good on all devices. Generally speaking you should use 3 variants: phone, 7 inch tablet and 10 inch tablet.

If you want to support both orientations then you should use 6 variants to support the 2 orientations.

SS-2011-09-19_15.14.24.png
 
Upvote 0

bluedude

Well-Known Member
Licensed User
Longtime User
Clear, great. And what about scaling? Right now I have scale factor 1.5 (240 dpi) on my Nexus. Still not sure what the best approach is.

Right now my app. that works fine on Nexus, Galaxy phone and Hero looks fine without modification. But on ViewSonic 7 inch it does not maxime to the full size of the screen. Is that normal behavior if a layout variant is not added?

Cheers,
 
Upvote 0

bluedude

Well-Known Member
Licensed User
Longtime User
Clear,

So in the emulator what should I create then and with which scale factor? Should I get these from the deviced and then re-create it in the emulator?

Not sure what scaling the ViewSonic 7 inch has.
 
Upvote 0

bluedude

Well-Known Member
Licensed User
Longtime User
And the thing is, I already added a 480x800 scale 1.5 variant. Shouldn't that work with the viewSonic because that is a 800x480 (landscape mode).

Cheers,
 
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
I am having the same problem with the ViewSonic 7.

I test my apps usually on my Galaxy Tab 7 and my HTC Desire. Scales perfect on both machines. It does not on a friends ViewSonic which has the same resolution as the Desire (480x800).

He told me he can set certain compatibility modes for the resolution. Maybe it has to do with that. I did not have the pad in my claws yet.

Rolf
 
Upvote 0

bluedude

Well-Known Member
Licensed User
Longtime User
Hmmm,

My Nexus One says scale 1.5 480x800 and I created a variant for that one. I know the ViewSonic is 800x480 so shouldn't that actually work without a problem.

So Erel you say I also should use 480x320 scale 1 for the Nexus One? Nexus One is not a 7 inch as far as I know so the options are kind of strange because the Nexus One is a phone and not a tablet.

Confusing stuff. If I use your guidelines should all work fine?
 
Upvote 0
Top