2011-08-26 117 views

回答

-14

在Android上,你可以找到那些屏幕尺寸:

XLARGE屏幕是在至少960dp x 720dp

屏幕至少640dp X 480dp

正常屏幕至少470dp X 320dp

屏幕至少426dp X 320dp

您可以設置此在你的AndroidManifest文件中使用這個例子:

supports-screens android:smallScreens=["true"] 
+19

這不是一個問題的答案。 – Blackhex

+2

這些只是屏幕尺寸範圍。有許多其他許多不同(像素)屏幕尺寸的Android設備。 – treesAreEverywhere

147

我在幾個月前研究了幾十種最受歡迎​​的Android設備的同一件事。我發現,每Android裝置具有以下寬高比兩者中之一(從最正方形到最矩形):

  • 4:3
  • 3:2
  • 8:5
  • 5:3
  • 16:9

而如果你認爲肖像設備從景觀設備分開你還會發現這些比率(3的倒數:4,2:3,5:8,3:5和9 :16)


More complete answer here: stackoverflow community spreadsheet of Android device resolutions and DPIs

+2

我不認爲有5:4的比例。你能給個例子嗎?並且有15:9的比率,其中包括許多設備,如1280x768 – Sami

+1

另請注意:16:10 == 8:5 – soundsofpolaris

+1

所列數字還包括iPhone和Windows Phone。 – cleong

130

如果有人想更多的視覺參考:

aspect_ratio_visual_reference

十進制近似值參考表:

╔══════════════════════════╦════════════════════════╦════════════════════════╗ 
║  aspect ratio  ║  decimal approx. ║  decimal approx. ║ 
║ [long edge x short edge] ║ [short edge/long edge] ║ [long edge/short edge] ║ 
╠══════════════════════════╬════════════════════════╬════════════════════════╣ 
║   18.5 x 9   ║  0.486...  ║  2.056...  ║ 
╠══════════════════════════╬════════════════════════╬════════════════════════╣ 
║   18 x 9   ║   0.5   ║   2   ║ 
╠══════════════════════════╬════════════════════════╬════════════════════════╣ 
║   19 x 10   ║  0.526...  ║   1.9   ║ 
╠══════════════════════════╬════════════════════════╬════════════════════════╣ 
║   16 x 9   ║   0.5625   ║  1.778...  ║ 
╠══════════════════════════╬════════════════════════╬════════════════════════╣ 
║   5 x 3   ║   0.6   ║  1.667...  ║ 
╠══════════════════════════╬════════════════════════╬════════════════════════╣ 
║   16 x 10   ║   0.625   ║   1.6   ║ 
╠══════════════════════════╬════════════════════════╬════════════════════════╣ 
║   3 x 2   ║  0.667...  ║   1.5   ║ 
╠══════════════════════════╬════════════════════════╬════════════════════════╣ 
║   4 x 3   ║   0.75   ║  1.333...  ║ 
╚══════════════════════════╩════════════════════════╩════════════════════════╝ 

更新日誌:

  • 2017年5月:新增19x10(手機必備)
  • 2017年3月:新增18.5x9(三星Galaxy S8)和18x9(LG G6)
+0

3:4使圖像適合縱向模式下的大多數屏幕尺寸。 –

+0

16:10 = 8:5,18:9 = 2:1,18.5:9 = 37:18 – Liggliluff

+2

是的,我知道這一點。我決定堅持設備製造商正在使用的數字(例如,查看推廣LG G6的網站)。 –

0

的索尼Tablet P是但它可以在橫向模式下爲每個應用程序在32:15和32:30之間切換,反之亦然,因此這是針對的最小範圍

2

簡化了計算方程的最佳方法。也就是說,找到兩個數字之間的最大除數並劃分:

ex。

1920:1080 maximum common divisor 120 = 16:9 
1024:768 maximum common divisor 256 = 4:3 
1280:768 maximum common divisor 256 = 5:3 

也可能發生一些方法

相關問題