Home
last modified time | relevance | path

Searched refs:itemWidth (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/tools/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/
DThemePreviewLayout.java107 int itemWidth = 0; in onMeasure() local
118 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()
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DMenuPopup.java159 final int itemWidth = itemView.getMeasuredWidth(); in measureIndividualMenuWidth() local
160 if (itemWidth >= maxAllowedWidth) { in measureIndividualMenuWidth()
162 } else if (itemWidth > maxWidth) { in measureIndividualMenuWidth()
163 maxWidth = itemWidth; in measureIndividualMenuWidth()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuPopup.java161 final int itemWidth = itemView.getMeasuredWidth(); in measureIndividualMenuWidth() local
162 if (itemWidth >= maxAllowedWidth) { in measureIndividualMenuWidth()
164 } else if (itemWidth > maxWidth) { in measureIndividualMenuWidth()
165 maxWidth = itemWidth; in measureIndividualMenuWidth()
DIconMenuView.java345 float itemWidth; in positionChildren() local
355 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()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java218 final int itemWidth = itemView.getMeasuredWidth(); in measureContentWidth() local
221 if (itemWidth >= popupMaxWidth) { in measureContentWidth()
223 } else if (itemWidth > maxWidth) { in measureContentWidth()
224 maxWidth = itemWidth; in measureContentWidth()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DBaseWrapContentTest.java79 final int itemWidth = 15; in unspecifiedWithHintTest() local
87 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()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java600 final int itemWidth = (int) (width * info.widthFactor + 0.5f); in getLeftEdgeForItem() local
601 return MAX_SCROLL_X - itemWidth - scaledOffset; in getLeftEdgeForItem()