Slices for Android device (Samsung Galaxy S4-xxhpi)?
The Samsung Galaxy S4 has a resolution of 1080 x 1920 . I made a PSD of this size and sliced.
After slicing, I put them in my project and coded something like ImageView.
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_gravity="center_horizontal"
android:src="@drawable/logo" />
Even when I run it shows too big on my android device.
I don't know much about the internet and found that it has to divide it by 3 to get
1080 / 3 = 360 dp
1920 / 3 = 640 dp
where it says crop it 360 x 640.
On the other hand, I found that it should be 640 x 960
Can anyone tell me which PSD I should choose and how to slice it appropriately.
If you can give for all sizes, it would be helpful for me.
ldpi
mdpi
hdpi
xhdpi
xxhdpi
xxxhdpi
Thank.
+3
source to share
1 answer
For Android devices
LDPI-icon-36x36, splash-426x320
MDPI-icon-48x48, splash-470x320
HDPI icon 72x72, splash- 640x480
XHDPI- icon-96x96, splash-960x720
XXHDPI- icon- 144x144
For Android Tablet Devices
LDPI:
Portrait: 200x320px
Landscape: 320x200px
MDPI:
Portrait: 320x480px
Landscape: 480x320px
HDPI:
Portrait: 480x800px
Landscape: 800x480px
XHDPI:
Portrait: 720px1280px
Landscape: 1280x720px
For more details see the Developer Guide here
Thank.
0
source to share