问题
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
inpsd
is94 px x 747px
(height x width). - Now I convert this
px
todp
using this tool. - Let's assume I am creating
layout
forNexus 5
,xxhdpi
device. - In tool I entered the value of
px
in the front ofxxhdpi
which get converted into33.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
is48 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