1x1 Android Widget shows as 2x2 widget on WXGA720 screen

后端 未结 1 631
故里飘歌
故里飘歌 2021-02-06 03:31

I\'m creating a 1x1 Android widget. I have designed images for each screen density as follows:

ldpi  (120 DPI) = 72 * (120 / 160) == 54 x 54 pixels
mdpi  (160 D         


        
相关标签:
1条回答
  • 2021-02-06 04:08

    Before Android 4.0: (n * 74dip) - 2dip http://android-developers.blogspot.com/2009/04/introducing-home-screen-widgets-and.html

    Android 4.0: 70 × n − 30 http://developer.android.com/guide/practices/ui_guidelines/widget_design.html#anatomy

    There's also padding that is automatically added when android:targetSdkVersion="14 or higher" is set.

    0 讨论(0)
提交回复
热议问题