Android tablet widget size

I have a widget whose minimum size is 250dp x 180 dp after the widget size of the Android Design Guide . This should occupy 4 * 3 cells. It works well on phones with ginger and an ice cream sandwich, but when I add my widget to cell phones, I see that it occupies only 3 * 2 cells, and my widget is not fully visible.

Refresh when resizing the widget, it looks good after manually resizing, but now the problem is with the initial parameters.

Is there something I don't see?

+4
source share
1 answer

@mmohab try using the old formula width_of_widget = (numrows * 74) - 2 height_of_widget = (numcols * 74) - 2 on my samsung tab using the new formula (70 × n - 30), 4x2 appeared 3x2. only after using the old formula. The size of the widget on the Samsung tab appeared as expected - 4x2

+1
source

Source: https://habr.com/ru/post/1397184/


All Articles