set minHeight and minWidth android AppWidget programatically -


is possible find on appwidget creation max number of cells can occupy appwidget. read documentation appwidgets in handsets can occupy 4x4 cells, set minheight , minwidth:

android:minheight="320dip" android:minwidth="320dip"

however test application on lg g4 h815 , found out device has 5x5 cell grid. question is possible found out max number of cells widget can occupy programatically on widget creation time.

no, impossible :( can specify minwidth , minheight, default size of widget. on bigger grids, mentioned 5x5, user have choice have widget @ specified size or enlarge occupy more space.

you can specify minresizewidth , minresizeheight, make widget impossible shrink below these values.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -