简体   繁体   English

android和ios移动设备需要什么屏幕尺寸?

[英]What screen sizes needed for android and ios mobile devices?

So i have a mobile app, and i have a graphic designer. 所以我有一个移动应用程序,我有一个平面设计师。

Now i want to get the graphic designer to give me the images necessary for the full-screen background. 现在我想让平面设计师为我提供全屏背景所需的图像。

The device is for android and ios - and will be runnable on the various mobile/tables types for android and ios. 该设备适用于Android和ios - 并且可以在Android和ios的各种移动/表格类型上运行。

What are the sizes I am meant to get the graphic designer to give me for the image? 我想让图形设计师为我提供图像的尺寸是多少? I had a read of the android size-guide , and came away unconvinced that the android team themselves know what sizes of image are required. 我读了一下android尺寸指南 ,并且不相信Android团队自己知道需要什么尺寸的图像。

(I mean, there are tables everywhere, and sometimes they say to multiply the base by two, but then for example 470dp x 320dp *2 != 960dp x 720dp) (我的意思是,到处都有表格,有时他们会说基数乘以2,但是后来例如470dp x 320dp * 2!= 960dp x 720dp)

The ios screen size chart i am using is this one , and unless someone says otherwise i will keep to using that. 我正在使用的ios屏幕尺寸表就是这个 ,除非有人说不然我会继续使用它。

I am assuming all images will be 72 ppi, if only because that seems to be the suggestion from this question 我假设所有图像都是72 ppi,只是因为这似乎是这个问题的建议

I've searched and searched for one for android, and I've come up with nothing. 我搜索并搜索了一个用于android的东西,我什么都没想出来。 You will have to hard code in the dark a UI for android that can resize objects based upon the size of the device. 你将不得不在黑暗中硬编码Android的UI,它可以根据设备的大小调整对象的大小。 Although this sounds hard, it will just take some time and practice (As I'm in the same boat with you taking my iOS apps to android having never programmed for android myself). 虽然这听起来很难,但它只需要一些时间和练习(因为我和你一起把我的iOS应用程序带到了android,而我自己从未为Android编程)。 Best guess is http://i1.wp.com/thedigitaldisciple.net/wp-content/uploads/Screen-Master-3-2014.jpg 最好的猜测是http://i1.wp.com/thedigitaldisciple.net/wp-content/uploads/Screen-Master-3-2014.jpg

For iOS, it is way easier. 对于iOS,它更容易。 http://ivomynttinen.com/blog/the-ios-7-design-cheat-sheet/ This is the guide I personally like to use as it is up to date for iOS 7 and iPhone 5s. http://ivomynttinen.com/blog/the-ios-7-design-cheat-sheet/这是我个人喜欢使用的指南,因为它是iOS 7和iPhone 5s的最新版本。 For details with iOS 8, just see developer.apple.com and the vast libraries there (you will be required to pay the $99 fee to access the libraries, download the software, and host your apps on there networks). 有关iOS 8的详细信息,请参阅developer.apple.com及其中的大型库(您需要支付99美元的费用才能访问库,下载软件以及在网络上托管您的应用程序)。

Hope this answered ya question :) 希望这回答你的问题:)

Update: Here is a good link about testing for multiple screen sizes on Android because there is no set sizes. 更新:这是关于在Android上测试多种屏幕尺寸的良好链接,因为没有设置尺寸。 http://developer.android.com/guide/practices/screens_support.html#testing http://developer.android.com/guide/practices/screens_support.html#testing

Does anyone have a list for the android os size requirements (tablet/phone) 有没有人有一个android os大小要求列表(平板电脑/手机)

It can be anything. 它可以是任何东西。

This is no different than desktop windows in a windowed OS (eg, Windows, OS X, Linux) or browser windows, which can be of any width and height. 这与窗口操作系统(例如,Windows,OS X,Linux)或浏览器窗口中的桌面窗口没有什么不同,后者可以是任何宽度和高度。 Either do not use a full-screen background, or use the same techniques that desktop and Web developers use (eg, a full-screen background that fades to some basic color that can be used to fill in where the aspect ratio of your background differs from the aspect ratio of the screen/window/browser). 要么不使用全屏背景,要么使用桌面和Web开发人员使用的相同技术(例如,全屏背景淡化为某些基本颜色,可用于填充背景宽高比不同的地方从屏幕/窗口/浏览器的纵横比)。

Can this be confirmed at 72ppi for the image? 这可以在72ppi确认图像吗?

Android screen densities fall into several buckets, as is outlined in the documentation . Android屏幕密度分为几个桶,如文档所述 None are 72dpi. 没有是72dpi。

I can only answer for Android. 我只能回答Android问题。 I guess that you just have to follow the information from this link: http://developer.android.com/design/style/iconography.html . 我想您只需要关注此链接中的信息: http//developer.android.com/design/style/iconography.html

The medium quality asset has te be 48dp x 48dp. 中等质量资产为48dp x 48dp。 It means that it will be 48px x 48px on a 160 ppi screen. 这意味着它在160 ppi屏幕上将是48px x 48px。 On a 72 ppi screen, the image will appear 107px x 107px. 在72 ppi屏幕上,图像将显示为107px x 107px。

I guess that you can define the dimensions of the other qualities of your picture the same way you would define the HDPI, XHDPI,... icons. 我猜你可以像定义HDPI,XHDPI,...图标一样定义图片其他品质的尺寸。

The HDPI icon has to be 1.5 times bigger that the MDPI so it will be: HDPI图标必须是MDPI的1.5倍,因此它将是:
72px*72px at 160 dp 在120 dp时72px * 72px
or 48px*48px at 240 dp 或240pp时48px * 48px

The XHDPI icon has to be 2 times bigger that the MDPI so it will be: XHDPI图标必须是MDPI的2倍,因此它将是:
96px*96px at 160 dp 在160 dp时96px * 96px
or 48px*48px at 320 dp 在320 dp时为48px * 48px

As a result, I think that you need to save the same file with different ppi parameters to get your different qualities. 因此,我认为您需要使用不同的ppi参数保存相同的文件以获得不同的质量。 I can provide you a script to do it automatically from Illustrator if needed 我可以为您提供一个脚本,以便在需要时自动从Illustrator中执行此操作

The Problem about Android is that there are all kinds of screens, from SD to 4K. 关于Android的问题是有各种各样的屏幕,从SD到4K。 Most of them have an aspect ratio of about 16:9 but there are quadratic screens as well (and soon the Moto 360 with a round screen) so the best you can do is get an image in 4K and scale it down in the application to fit the screen. 它们中的大多数都具有大约16:9的宽高比,但也有二次屏幕(很快Moto 360带有圆形屏幕)所以你能做的最好的事情就是获得4K的图像并在应用程序中缩小它适合屏幕。

You must pay attention to the different aspects that are explained in the official guide . 您必须注意官方指南中解释的不同方面。

For image resources you must pay attention to different screen densities. 对于图像资源,您必须注意不同的屏幕密度。 As you said you want images for full-screen background, apart from different densities, you must take into account the device orientation and maybe the aspect ratio too, but in most of devices some parts of the background image will be out of the screen. 正如您所说,除了不同的密度,您需要全屏背景图像,您必须考虑设备方向和宽高比,但在大多数设备中,背景图像的某些部分将不在屏幕之外。

For iPhone : 对于iPhone:

Here are two sizes available for screen size 以下是两种可用于屏幕尺寸的尺寸

                                iPhone 4S              iPhone 5

Window (including status bar)   320 x 480 pts          320 x 568 pts

View inside window
(visible status bar)           320 x 460 pts           320 x 548 pts

Launch Image                   640 x 960 pixels       640 x 1136 pixels
(Launch Image Sizes for 
 iPhone )   

You can it this link with iPhone size 你可以通过这个链接与iPhone大小

For Android : 对于Android:

It's vary with the size 它随大小而变化

For larger screen phones   720*1280

For small screen phones    480*800

it depends on resolution of device. 这取决于设备的分辨率。 some larger screen size has low resolution so they use 480*800 and some small screen size devices but with high resolution uses 720*1280 一些较大的屏幕尺寸具有低分辨率,因此它们使用480 * 800和一些小屏幕尺寸的设备,但具有高分辨率使用720 * 1280

You can it this link with android size 你可以用android大小这个链接

Just got to androidpixels.com and determine what you need. 刚到androidpixels.com并确定你需要什么。 Also, you can ask your designer to include apps that give you text size in sp and margins ins do from psds. 此外,您可以要求您的设计人员添加一些应用程序,这些应用程序可以为您提供sp文本大小和来自psds的余量。

you can set platform specific styles and attributes. 您可以设置特定于平台的样式和属性。 so easily you can handle multi screen size by set style for each platform separately. 您可以轻松地通过分别设置每个平台的样式来处理多屏幕尺寸。 for example: in style.css 例如:在style.css中

 .android #theElement { ... }

 .ios #theElement { ... }

or even with more details: 甚至更多细节:

 .ios.phone #theElement { ... }

 .android.tablet #theElement { ... }

also following link should help you: 以下链接应该可以帮助您:

https://blog.safaribooksonline.com/2012/07/13/phonegap-tip-changing-look-feel-based-on-the-platform/ https://blog.safaribooksonline.com/2012/07/13/phonegap-tip-changing-look-feel-based-on-the-platform/

supporting multiple resolution and density of images in phonegap 在phonegap中支持多种分辨率和图像密度

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

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