Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scaling android app to different screen sizes

Tags:

android

So I'm working on scaling my application to different screen sizes. Right now Its optimized for a 10.1 inch screen but I'm working to get it to run on the kindle fire which has a 7 inch screen. I'm only using relative layouts. As of now my background scales perfectly but the image buttons ontop of the background don't scale and I was wondering if there was a reason for this. Also I use margins to adjust the positions of my buttons, is this okay for scaling sizes?

like image 677
Peter Avatar asked Feb 22 '23 09:02

Peter


1 Answers

to support application on different screen refer the following link

http://developer.android.com/guide/practices/screens_support.html

and to scale image button use nine patch images they scale well.

Also I use margins to adjust the positions of my buttons, is this okay for scaling sizes?

yes it okay.

like image 93
Connecting life with Android Avatar answered Mar 03 '23 15:03

Connecting life with Android