i'm having bit of trouble understanding of google documentation. specifically, this link suggests widgets 1 cell has height , width of 40dp, 110dp 2 cells etc.
in practice however, seems can set minheight , width high 80dp before widget switches being 1x1 widget 2x2 widget. know how explain variation? (and matter why first cell in documentation 40dp, if want occupy 2 cells, have more twice space?
thanks!
if you're referring launcher cells, values change (depending on grid size in different launchers.
for normal launchers, these dp per cell.
1 40dp
2 110dp
3 180dp
4 250dp
n 70 × n − 30
source: http://developer.android.com/guide/practices/ui_guidelines/widget_design.html
Comments
Post a Comment