How to create Android layout matches pixel to pixel from PSD?

前提是你 提交于 2019-12-11 11:48:49

问题


If you look at the Question text then it sounds duplicate but I am facing different problem here. I have couple of psd (given by designer). Now I need to convert them into Android layout. So, I followed the following approach:

  • Let's assume the size of App Bar in psd is 94 px x 747px (height x width).
  • Now I convert this px to dp using this tool.
  • Let's assume I am creating layout for Nexus 5, xxhdpi device.
  • In tool I entered the value of px in the front of xxhdpi which get converted into 33.3. dp for the same device type.
  • This value looks like very small as compare to whole psd layout. The perfect values fits to App Bar is 48 dp.

I am little bit confused here. How can I use psd dimensions to create pixel to pixel android layout? What am I doing wrong here?

来源:https://stackoverflow.com/questions/32772318/how-to-create-android-layout-matches-pixel-to-pixel-from-psd

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