Merge "Properly measure dataset presentations" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
85548127a3
@@ -265,8 +265,11 @@ final class FillUi {
|
|||||||
mContentWidth = 0;
|
mContentWidth = 0;
|
||||||
mContentHeight = 0;
|
mContentHeight = 0;
|
||||||
|
|
||||||
final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(MeasureSpec.UNSPECIFIED, 0);
|
final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxSize.x,
|
||||||
final int heightMeasureSpec = MeasureSpec.makeMeasureSpec(MeasureSpec.UNSPECIFIED, 0);
|
MeasureSpec.AT_MOST);
|
||||||
|
final int heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxSize.y,
|
||||||
|
MeasureSpec.AT_MOST);
|
||||||
|
|
||||||
final int itemCount = Math.min(mAdapter.getCount(), VISIBLE_OPTIONS_MAX_COUNT);
|
final int itemCount = Math.min(mAdapter.getCount(), VISIBLE_OPTIONS_MAX_COUNT);
|
||||||
for (int i = 0; i < itemCount; i++) {
|
for (int i = 0; i < itemCount; i++) {
|
||||||
View view = mAdapter.getItem(i).getView();
|
View view = mAdapter.getItem(i).getView();
|
||||||
|
|||||||
Reference in New Issue
Block a user