Today, I read the android tutorial about supporting multiple screen. I got some problems here. In the tutorial, it says we can use size and density-specific resource in this way:
res/layout-w600dp/main_activity.xml
I know that w600dp means the available width is 600dp. But is it for portal or landscape?
Here is real case: I want to design a full width header image for my android app in portal mode. This app is targeted for Samsung Galaxy S4, which has 5.0 inches, 1080x1920 pixels with 441 dpi. That means my header image need to be 1080 pixels. As android tutorial mentioned, in android, px = dp * (dpi/160); In Samsung Galaxy S4 example, 1080px width is 391dp. So do I need to declare the layout in:
res/layout-w391dp/main_activity.xml
or
res/layout-w320dp/main_activity.xml
When I am using Photoshop to create my header image, do I need to set my image parameter as 1080 width, 40 height and 441dpi? After I get the image, do I need to put this image in:
res/drawable-xhdpi/
or
res/drawable-w600dp/