As we all know, there are three mode in MeasureSpec. They are AT_MOST,EXACTLY,UNSPECIFIED. I know what are the other two mode refer two, but still can’t get the meaning of AT_MOST from the reference.
Thanks
As we all know, there are three mode in MeasureSpec . They are AT_MOST
Share
AT_MOSTmeans that the child can be any size up to and including the size of theMeasureSpec.For example, having a
MeasureSpecof size100, 100and a mode ofAT_MOSTwould allow the child to havewidth <= 100andheight <= 100See: http://developer.android.com/reference/android/view/View.MeasureSpec.html#AT_MOST