I went to the official doc page android google official doc, but it seems that they made a serious typo : we have no information about the third argument of the method. So I just wonder if someone already knows how to define this third int argument.
Share
The
childMeasuredStateis the value returned byView.getMeasuredState(). A layout will aggregate its children measured states usingView.combineMeasuredStates(). Here is an example:In most case however you can simply pass 0 instead. The child state is currently used only to tell whether a View was measured at a smaller size than it would like to have. This information is in turn used to resize dialogs if needed. In your particular case you shouldn’t worry about it.