Android Apps design resolution

人盡茶涼 提交于 2019-12-23 19:45:49

问题


I'm required to design an apps for android. And after some reading, I find out android device are divided into few categories in term of resolution, like

  • small screen
  • normal screen
  • large screen
  • extra large screen

but in different density.

So lets say, now I need to come out a design for normal screen, what resolution that I should use for the "look & feel" of the apps UI.

From the reading, I know android apps are use dp instead of px. So, is it means I have to convert few specific screen size to dp before I start to design ?

Or I just simply target a common resolution for normal screen size like 320x480, provided I will have few set drawable in different density ?

Please correct me if I had mistaken it.

Thank you


回答1:


Good question, so far we have 5 screen densities : xxhdpi,xhdpi,hdpi,mdpi,ldpi , now if you have an image resource you will need to create 5 copies of it, its always recommended to start by the xxhdpi till you reach to the smallest,

however you can use online calculators that will calculate the PX and DP for all the densities, i recommend these two tools android developer toolbox and developers tools, and with developers tools you can test the colors, and how are they going to look like in the screen in HEX decimal.




回答2:


Yes it is true android has following types of devices LDPI MDPI HDPI XHDPI

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

this link gives you all the description and ya you have to create icons and images supporting to all the devices resolution wise.




回答3:


There are various devices with various screen sizes. Usually, they are mentioned as LDPI, MDPI, HDPI or XHDPI devices.

Although, in coding there are many things to be kept in mind so that you achieve a good uniform design in all your devices !

Refer to this link. It is always good to follow official sites, rather than other tutorials out there. Make a habit of using relativelayout !

Also in the link you can explore many things to get the knowledge of designing in Android.



来源:https://stackoverflow.com/questions/17441010/android-apps-design-resolution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!