UI compatibility

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

UI compatibility

Postby nbagade » Fri Jul 02, 2010 11:39 am

Hi All,
I have design UI in Android.This UI is perfectly fine with HTC HERO screen.
But I am not sure ,How to make its resolution perfect with other device.

Is there any api to set the UI perfectly fit with all device.


Regards,
Neo
nbagade
Experienced Developer
Experienced Developer
 
Posts: 58
Joined: Fri Nov 20, 2009 7:49 am
Location: India

Top

Re: UI compatibility

Postby blundell » Fri Jul 02, 2010 12:54 pm

No there isn't a API, you have to use correct programming practices and ensure you never use exact values and always code against the screen width and height.

A good google on android relative sizing might enlighten you
[url=http://developer.android.com/guide/practices/screens_support.html]Screen Size / Good Practices[url]
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 4 guests