Widget minwidth for having N columns?

android, android-widget

Solution

Found the authoritative spec here

http://android-developers.blogspot.com/2009/04/introducing-home-screen-widgets-and.html

Minimum size in dip = (Number of cells * 74dip) - 2dip

72, 146, 220, 294

Problem

What numbers should I put in widget provider xml minwidth/height to achieve 1, 2, 3, and 4 rows and columns? From looking at other apps I found that people are using 72, 142, 220 and 294 dips but could not find any reference for it in the Google widget guidelines. Are these numbers safe for all devices? Are they based on Google spec? EDIT: corrected to 294 (was 290).

Original source