Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Easy way of supporting multiple Android resolutions?

$
0
0

Currently I have an app (iOS and Android) which is supported for 2 or 3 Android resolutions, but since there are so many Android devices, I need to support them all.

Currently, I am hard-coding the width/height like this:

if (Ti.Platform.displayCaps.platformWidth == 320)
    height = 480;
    width = 320;
(and so on for different resolutions) I heard about using percentages, but this answer makes me think it's not very reliable to use percentages for Android (and I'm targeting a fix for Android basically).

Please throw some light on how I can achieve my goal of supporting multiple Android devices using minimal effort and/or smooth execution of the fix. Any help will be greatly appreciated, and is greatly needed. Thanks in advance. :)


Viewing all articles
Browse latest Browse all 7655


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>