PDA

View Full Version : سایز تصاویر (باکاربردهای مختلف) در اکلیپس



raha.scientific
یک شنبه 26 اردیبهشت 1395, 14:44 عصر
باسلام
برای گذاشتن عکس پس زمینه در اکتیویتی، چه سایزی بر حسب پیکسل مناسب است درهریک از پوشه های:
hdpi
mdpi
ldpi

همچنین برای imageview و آیکن برنامه؟
(هرمورد از این عکس ها رو با چه اندازه هایی ای در این 3 پوشه باید ذخیره کنیم)

saeidcd
دوشنبه 27 اردیبهشت 1395, 08:30 صبح
Icon Sizes (full / content)



Density
Launcher
Menu
Action Bar
Status Bar and Notification
Tab
Pop-up Dialog and List View
Small and Contextual


ldpi
36x36 px
36x36 / 24x24 px
24x24 / 18x18 px
18x18 / 16x16 px
24x24 / 22x22 px
24x24 px
12x12 / 9x9 px


mdpi
48x48 px
48x48 / 32x32 px
32x32 / 24x24 px
24x24 / 22x22 px
32x32 / 28x28 px
32x32 px
16x16 / 12x12 px


hdpi
72x72 px
72x72 / 48x48 px
48x48 / 36x36 px
36x36 / 33x33 px
48x48 / 42x42 px
48x48 px
24x24 / 18x18 px


xhdpi
96x96 px
96x96 / 64x64 px
64x64 / 48x48 px
48x48 / 44x44 px
64x64 / 56x56 px
64x64 px
32x32 / 24x24 px


xxhdpi
144x144 px
(1)
(1)
(1)
(1)
(1)
(1)









Screen Size Classes



Class
Size in dp
Layout Folder
Examples
Comment


small
426x320 dp
layout-small
typical phone screen (240x320 ldpi, 320x480 mdpi, etc.)



normal
470x320 dp
layout-normal OR layout
typical phone screen (480x800 hdpi)
baseline size


large
640x480 dp
layout-large
tweener tablet like the Streak (480x800 mdpi), 7" tablet (600x1024 mdpi)



xlarge
960x720 dp
layout-xlarge
10" tablet (720x1280 mdpi, 800x1280 mdpi, etc.)








Example Screen Configurations



Screen Size
Low density (120), ldpi
Medium density (160), mdpi
High density (240), hdpi
Extra high density (320), xhdpi


small
QVGA (240x320)

480x640



normal
WQVGA400 (240x400)
WQVGA432 (240x432)
HVGA (320x480)
WVGA800 (480x800)
WVGA854 (480x854)
600x1024
640x960


large
WVGA800 (480x800)(2)
WVGA854 (480x854)(2)
WVGA800 (480x800)(1)
WVGA854 (480x854)(1)
600x1024




xlarge
1024x600
WXGA (1280x800)(3)
1024x768
1280x768
1536x1152
1920x1152
1920x1200
2048x1536
2560x1536
2560x1600

raha.scientific
دوشنبه 27 اردیبهشت 1395, 11:56 صبح
Icon Sizes (full / content)



Density
Launcher
Menu
Action Bar
Status Bar and Notification
Tab
Pop-up Dialog and List View
Small and Contextual


ldpi
36x36 px
36x36 / 24x24 px
24x24 / 18x18 px
18x18 / 16x16 px
24x24 / 22x22 px
24x24 px
12x12 / 9x9 px


mdpi
48x48 px
48x48 / 32x32 px
32x32 / 24x24 px
24x24 / 22x22 px
32x32 / 28x28 px
32x32 px
16x16 / 12x12 px


hdpi
72x72 px
72x72 / 48x48 px
48x48 / 36x36 px
36x36 / 33x33 px
48x48 / 42x42 px
48x48 px
24x24 / 18x18 px


xhdpi
96x96 px
96x96 / 64x64 px
64x64 / 48x48 px
48x48 / 44x44 px
64x64 / 56x56 px
64x64 px
32x32 / 24x24 px


xxhdpi
144x144 px
(1)
(1)
(1)
(1)
(1)
(1)









Screen Size Classes



Class
Size in dp
Layout Folder
Examples
Comment


small
426x320 dp
layout-small
typical phone screen (240x320 ldpi, 320x480 mdpi, etc.)



normal
470x320 dp
layout-normal OR layout
typical phone screen (480x800 hdpi)
baseline size


large
640x480 dp
layout-large
tweener tablet like the Streak (480x800 mdpi), 7" tablet (600x1024 mdpi)



xlarge
960x720 dp
layout-xlarge
10" tablet (720x1280 mdpi, 800x1280 mdpi, etc.)








Example Screen Configurations



Screen Size
Low density (120), ldpi
Medium density (160), mdpi
High density (240), hdpi
Extra high density (320), xhdpi


small
QVGA (240x320)

480x640



normal
WQVGA400 (240x400)
WQVGA432 (240x432)
HVGA (320x480)
WVGA800 (480x800)
WVGA854 (480x854)
600x1024
640x960


large
WVGA800 (480x800)(2)
WVGA854 (480x854)(2)
WVGA800 (480x800)(1)
WVGA854 (480x854)(1)
600x1024




xlarge
1024x600
WXGA (1280x800)(3)
1024x768
1280x768
1536x1152
1920x1152
1920x1200
2048x1536
2560x1536
2560x1600






خیلی خیلی ممنون