Today I read an Android tutorial on multi-screen support. I have problems here. The textbook says that we can use a resource corresponding to size and density:
Res / layout-w600dp / main_activity.xml
I know that w600dp means that the available width is 600dp. But is it for a portal or landscape?
Here is the real case: I want to create a full-width header image for my Android application in portal mode. This application is for Samsung Galaxy S4, which has 5.0 inches, 1080x1920 pixels and 441 dpi. This means my header image should be 1080 pixels. As mentioned in the android manual, in android, px = dp * (dpi / 160); In the Samsung Galaxy S4 example, the width of 1080px is 391dp. I need to declare a layout in :
Res / layout-w391dp / main_activity.xml
or
Res / layout-w320dp / main_activity.xml
When I use Photoshop to create my header image, do I need to set my image parameter to be 1080, 40 height and 441dpi wide ? After I get the image, I need to put this image in :
RES/-xhdpi/
RES/-w600dp/