Searched refs:itemWidth (Results 1 – 7 of 7) sorted by relevance
107 int itemWidth = 0; in onMeasure() local118 itemWidth = Math.max(itemWidth, v.getMeasuredWidth()); in onMeasure()122 itemWidth = Math.min(Math.max(itemWidth, mMinColumnWidth), mMaxColumnWidth); in onMeasure()123 mNumColumns = Math.min((int) Math.ceil((double) wSize / itemWidth), mMaxColumns); in onMeasure()127 int wSizeNeeded = mNumColumns * itemWidth + (mNumColumns - 1) * mItemHorizontalMargin; in onMeasure()140 childWidthSpec = MeasureSpec.makeMeasureSpec(itemWidth, MeasureSpec.EXACTLY); in onMeasure()158 int totalWidth = mNumColumns * itemWidth + horizontalMarginsTotalWidth + in onMeasure()166 mItemWidth = itemWidth; in onMeasure()
159 final int itemWidth = itemView.getMeasuredWidth(); in measureIndividualMenuWidth() local160 if (itemWidth >= maxAllowedWidth) { in measureIndividualMenuWidth()162 } else if (itemWidth > maxWidth) { in measureIndividualMenuWidth()163 maxWidth = itemWidth; in measureIndividualMenuWidth()
161 final int itemWidth = itemView.getMeasuredWidth(); in measureIndividualMenuWidth() local162 if (itemWidth >= maxAllowedWidth) { in measureIndividualMenuWidth()164 } else if (itemWidth > maxWidth) { in measureIndividualMenuWidth()165 maxWidth = itemWidth; in measureIndividualMenuWidth()
345 float itemWidth; in positionChildren() local355 itemWidth = (menuWidth - mVerticalDividerWidth * (numItemsForRow[row] - 1)) in positionChildren()361 child.measure(MeasureSpec.makeMeasureSpec((int) itemWidth, MeasureSpec.EXACTLY), in positionChildren()367 childLayoutParams.right = (int) (itemLeft + itemWidth); in positionChildren()372 itemLeft += itemWidth; in positionChildren()
218 final int itemWidth = itemView.getMeasuredWidth(); in measureContentWidth() local221 if (itemWidth >= popupMaxWidth) { in measureContentWidth()223 } else if (itemWidth > maxWidth) { in measureContentWidth()224 maxWidth = itemWidth; in measureContentWidth()
79 final int itemWidth = 15; in unspecifiedWithHintTest() local87 holder.itemView.setLayoutParams(new ViewGroup.LayoutParams(itemWidth, itemHeight)); in unspecifiedWithHintTest()109 int expectedWidth = rv.getPaddingLeft() + rv.getPaddingRight() + itemWidth; in unspecifiedWithHintTest()111 expectedWidth += itemWidth; in unspecifiedWithHintTest()
600 final int itemWidth = (int) (width * info.widthFactor + 0.5f); in getLeftEdgeForItem() local601 return MAX_SCROLL_X - itemWidth - scaledOffset; in getLeftEdgeForItem()