如何设计android布局 [英] How to design android layout

查看:75
本文介绍了如何设计android布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我对Android应用程序的布局设计有疑问。我们如何设计一个应该适用于所有设备的android布局。例如,目前我为我的应用程序创建了一个布局,它在nexus AVD中运行良好。当我在其他avd中运行时,如nexus 7具有高分辨率,它的对齐方式正在破坏。请帮帮我。

解决方案

我认为可以选择为每个屏幕分辨率创建单独的布局。这更依赖于每像素的密度。请参阅此文档部分以了解有关它的更多信息。



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

Hi All,
I have a doubt in designing layout for android application. how we can design a android layout that should be compatable for all devices. for example currently i created a layout for my application its working fine in nexus AVD.when i run in other avd like nexus 7 with high resolution , its alignment is breaking. please help me.

解决方案

I think there is an option of creating separate layouts for each screen resolution. this is more dependent on density per pixels. Refer to this documentation section to learn more about it.

http://developer.android.com/guide/practices/screens_support.html[^]


这篇关于如何设计android布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆