开发者

How to manage layout for different device

开发者 https://www.devze.com 2023-03-14 09:00 出处:网络
Actually I wa开发者_开发百科nt to know how can we manage the layout in android while doing our app. I build a calculator app for my Nexus S device. Now when I build the app in my device it doesn\'t ma

Actually I wa开发者_开发百科nt to know how can we manage the layout in android while doing our app. I build a calculator app for my Nexus S device. Now when I build the app in my device it doesn't match the screen resolution. Moreover when I maintain the layout for Nexus S device then it's ok for that but when I use another device then again the same problem arises. So is there any way by which I can maintain the app so that in every device it fits the screen automatically. Please suggest to me.

Regards

Anshuman


I think you need this .. http://developer.android.com/guide/practices/screens_support.html

It has been explained quite nicely here that how to create layout that to support multiple screens.


You will have to put layouts for different screens in specially named directories. You can find all details about it here: http://developer.android.com/guide/practices/screens_support.html

0

精彩评论

暂无评论...
验证码 换一张
取 消