Android AppWidgetProvider: How To Interpret Min/Max Width/Height -


i'm attempting create android appwidget 4x1 cells initially, can resized vertically user. created class extends appwidgetprovider, , overrode onappwidgetoptionschanged() method examine appwidgets's minimum , maximum widths , heights whenever user resizes appwidget:

@override public void onappwidgetoptionschanged(context context, appwidgetmanager appwidgetmanager, int appwidgetid, bundle newoptions) {     int minimumheight = newoptions.getint(appwidgetmanager.option_appwidget_min_height);      int maximumheight = newoptions.getint(appwidgetmanager.option_appwidget_max_height);      int minimumwidth = newoptions.getint(appwidgetmanager.option_appwidget_min_width);      int maximumwidth = newoptions.getint(appwidgetmanager.option_appwidget_max_width);      log.d("tag", "minimumheight: " + minimumheight + ", maximumheight: " + maximumheight + ", difference: " + (maximumheight - minimumheight));      log.d("tag", "minimumwidth: " + minimumwidth + ", maximumwidth: " + maximumwidth + ", difference: " + (maximumwidth - minimumwidth)); } 

however, i'm not sure how interpret these widths , heights. initial 4x1 appwidget, output of method is:

minimumheight: 58, maximumheight: 84, difference: 26 minimumwidth: 304, maximumwidth: 408, difference: 104 

then if resize appwidget 4x2, output of method is:

minimumheight: 132, maximumheight: 184, difference: 52 minimumwidth: 304, maximumwidth: 408, difference: 104 

again, if resize appwidget 4x3, output of method is:

minimumheight: 206, maximumheight: 284, difference: 78 minimumwidth: 304, maximumwidth: 408, difference: 104 

from reading app widget design guidelines, can't figure out these numbers correspond to.

so question is: how interpret these 4 values? correspond to?


Popular posts from this blog