应用程序框架可支持多个屏幕 [英] Application Skeleton to support multiple screens

查看:107
本文介绍了应用程序框架可支持多个屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们知道Android配备了各种不同的设备 功能,分辨率和屏幕尺寸,以便在开发支持以下功能的应用程序时 多个屏幕(大小)存在尺寸和布局上的障碍.

As we know Android coming with various device which having different Features, Resolution, and Screen-size so while developing an Application which support multiple (small and big) screen there is an obstacle of size and layout.

这导致屏幕尺寸,分辨率和DPI 的不同组合,并且在为Android设备进行设计和开发时带来了很大的挑战.尽管其他一些制造商(非Android)具有不同的分辨率和DPI,但它们共享相同的屏幕尺寸,并且分辨率遵循相同的宽高比.因此,可以创建适合非Android设备的图像.

This leads to different combinations of screen sizes, resolutions, and DPIs and creates quite a challenge when designing and developing for Android devices. While some other Manufacturer (non Android) have different resolutions and DPI, they share the same screen size and the resolutions follow the same aspect ratio. Therefore, an image can be created to fit the non Android devices.

我的问题是,应该遵循一种适当的流程或体系结构来满足要求吗?

My question is that is there a proper flow or architecture that one should follow to meet the requirement?

请记住,我们确实有不同尺寸和分辨率的平板电脑.

我知道 Android开发人员 包含此信息,但我的观点来自于实现.

I'm aware that Android Developer contains this information but my view is from implementation.

据我所知,即使是程序员,对于设计Android图形也必须了解设计概念.

From my knowledge what I understood is that for designing Android graphics even Programmer must know the designing concept.

推荐答案

最后创建了一个结构,用于处理多屏幕的布局和图标.

Finally created a structure which handle layouts and icon for multiple screen.

Android根据两个参数将设备显示归为一类:

Android generalises device displays into categories based on two parameters:

  • 屏幕尺寸,显示器的物理尺寸(对角线测量)
  • 屏幕密度,即显示器的物理像素密度(以每英寸像素数或ppi为单位).

确定屏幕尺寸&快速安装密度,请安装"我的尺寸是多少适用于Android的应用.

To determine screen size & density quickly, please install "What's my Size" app for Android.

屏幕尺寸

Android定义了四种通用的屏幕尺寸:

Android defines four generalised screen sizes:

 Qualifier           Size

 small               ~3 inches (approx) 
 normal              ~4 inches (approx) 
 large               Exceeds 4 inches    
 xlarge              Exceeds 7 inches  

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