简体   繁体   English

不同屏幕尺寸的Android应用程序

[英]Android application on different screen sizes

I have an application which works fine on my Galaxy Ace, i mean layout looks fine, all proportional and that stuff. 我有一个可以在我的Galaxy Ace上正常运行的应用程序,我的意思是布局看起来不错,所有比例都是这样。 But when I install it on Galaxy Note, it doesn't fit the screen well, i mean it only shows in the top left corner of the screen, and the rest of the screen is white. 但是,当我将其安装在Galaxy Note上时,它不太适合屏幕,我的意思是它仅显示在屏幕的左上角,屏幕的其余部分为白色。 So I want to know how to adjust it to be same on all screen sizes? 所以我想知道如何在所有屏幕尺寸上将其调整为相同?

android开发人员文档中有一个指南: 支持不同的屏幕尺寸

I guess that you are using full values for your views/controls instead of doing it in a density independent way. 我想您正在为视图/控件使用完整的值,而不是以密度独立的方式进行操作。

Take a look at: http://developer.android.com/guide/practices/screens_support.html 看看: http : //developer.android.com/guide/practices/screens_support.html

It explains the several ways to achieve your goals. 它说明了实现目标的几种方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM