问题
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 Barinpsdis94 px x 747px(height x width). - Now I convert this
pxtodpusing this tool. - Let's assume I am creating
layoutforNexus 5,xxhdpidevice. - In tool I entered the value of
pxin the front ofxxhdpiwhich get converted into33.3. dpfor the same device type. - This value looks like very small as compare to whole psd layout. The perfect values fits to
App Baris48 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