Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 25) sorted by relevance

/appcompat/appcompat-resources/src/androidTest/java/androidx/appcompat/graphics/drawable/
DMyDrawable.kt36 val width = bounds.width() in draw() constant
38 val radius = (min(width, height) / 2).toFloat() in draw()
41 canvas.drawCircle((width / 2).toFloat(), (height / 2).toFloat(), radius, mPaint) in draw()
/appcompat/appcompat/src/main/java/androidx/appcompat/view/menu/
DActionMenuItemView.java221 int width = icon.getIntrinsicWidth(); in setIcon() local
223 if (width > mMaxIconSize) { in setIcon()
224 final float scale = (float) mMaxIconSize / width; in setIcon()
225 width = mMaxIconSize; in setIcon()
231 width = (int) (width * scale); in setIcon()
233 icon.setBounds(0, 0, width, height); in setIcon()
297 final int dw = mIcon.getBounds().width(); in onMeasure()
DListMenuItemView.java284 if (lp.height > 0 && iconLp.width <= 0) { in onMeasure()
285 iconLp.width = lp.height; in onMeasure()
/appcompat/appcompat/src/main/java/androidx/appcompat/widget/
DActionMenuView.java379 final int width = lp.cellsUsed * cellSize + lp.extraPixels; in onMeasureExactFormat() local
380 child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), in onMeasureExactFormat()
495 final int width = v.getMeasuredWidth(); in onLayout() local
498 final int l = midHorizontal - width / 2; in onLayout()
500 v.layout(l, t, l + width, t + height); in onLayout()
517 int width = v.getMeasuredWidth(); in onLayout() local
520 v.layout(startRight - width, t, startRight, t + height); in onLayout()
521 startRight -= width + lp.leftMargin + spacerSize; in onLayout()
533 int width = v.getMeasuredWidth(); in onLayout() local
536 v.layout(startLeft, t, startLeft + width, t + height); in onLayout()
[all …]
DLinearLayoutCompat.java719 if (widthMode != MeasureSpec.EXACTLY && lp.width == LayoutParams.MATCH_PARENT) { in measureVertical()
734 allFillParent = allFillParent && lp.width == LayoutParams.MATCH_PARENT; in measureVertical()
819 lp.leftMargin + lp.rightMargin, lp.width); in measureVertical()
852 lp.width == LayoutParams.MATCH_PARENT; in measureVertical()
857 allFillParent = allFillParent && lp.width == LayoutParams.MATCH_PARENT; in measureVertical()
923 if (lp.width == LayoutParams.MATCH_PARENT) { in forceUniformWidth()
1006 if (widthMode == MeasureSpec.EXACTLY && lp.width == 0 && lp.weight > 0) { in measureHorizontal()
1032 if (lp.width == 0 && lp.weight > 0) { in measureHorizontal()
1038 lp.width = LayoutParams.WRAP_CONTENT; in measureHorizontal()
1050 lp.width = oldWidth; in measureHorizontal()
[all …]
DToolbar.java1755 + widthUsed, lp.width); in measureChildConstrained()
1787 getPaddingLeft() + getPaddingRight() + hMargins + widthUsed, lp.width); in measureChildCollapseMargins()
1815 int width = 0; in onMeasure() local
1834 measureChildConstrained(mNavButtonView, widthMeasureSpec, width, heightMeasureSpec, 0, in onMeasure()
1844 measureChildConstrained(mCollapseButtonView, widthMeasureSpec, width, in onMeasure()
1855 width += Math.max(contentInsetStart, navWidth); in onMeasure()
1860 measureChildConstrained(mMenuView, widthMeasureSpec, width, heightMeasureSpec, 0, in onMeasure()
1870 width += Math.max(contentInsetEnd, menuWidth); in onMeasure()
1874 width += measureChildCollapseMargins(mExpandedActionView, widthMeasureSpec, width, in onMeasure()
1883 width += measureChildCollapseMargins(mLogoView, widthMeasureSpec, width, in onMeasure()
[all …]
DAlertDialogLayout.java224 if (lp.width == LayoutParams.MATCH_PARENT) { in forceUniformWidth()
268 final int width = right - left; in onLayout() local
269 final int childRight = width - getPaddingRight(); in onLayout()
272 final int childSpace = width - paddingLeft - getPaddingRight(); in onLayout()
347 private void setChildFrame(View child, int left, int top, int width, int height) { in setChildFrame() argument
348 child.layout(left, top, left + width, top + height); in setChildFrame()
DActionMenuPresenter.java111 int width = mWidthLimit; in initForMenu() local
123 width -= mOverflowButton.getMeasuredWidth(); in initForMenu()
128 mActionItemWidthLimit = width; in initForMenu()
142 public void setWidthLimit(int width, boolean strict) { in setWidthLimit() argument
143 mWidthLimit = width; in setWidthLimit()
699 final int width = getWidth(); in setFrame() local
701 final int halfEdge = Math.max(width, height) / 2; in setFrame()
704 final int centerX = (width + offsetX) / 2; in setFrame()
DAppCompatRatingBar.java66 final int width = sampleTile.getWidth() * getNumStars(); in onMeasure() local
67 setMeasuredDimension(View.resolveSizeAndState(width, widthMeasureSpec, 0), in onMeasure()
DContentFrameLayout.java144 int width = getMeasuredWidth(); in onMeasure() local
147 widthMeasureSpec = MeasureSpec.makeMeasureSpec(width, EXACTLY); in onMeasure()
161 if (width < min) { in onMeasure()
DAppCompatPopupWindow.java82 public void update(View anchor, int xoff, int yoff, int width, int height) {
87 super.update(anchor, xoff, yoff, width, height);
DSearchView.java798 int width = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
804 width = Math.min(mMaxWidth, width); in onMeasure()
806 width = Math.min(getPreferredWidth(), width); in onMeasure()
812 width = Math.min(mMaxWidth, width); in onMeasure()
817 width = mMaxWidth > 0 ? mMaxWidth : getPreferredWidth(); in onMeasure()
835 super.onMeasure(MeasureSpec.makeMeasureSpec(width, widthMode), in onMeasure()
1396 final int width = mDropDownAnchor.getWidth() + dropDownPadding.left in adjustDropDownSizeAndPosition() local
1398 mSearchSrcTextView.setDropDownWidth(width); in adjustDropDownSizeAndPosition()
DActionBarContextView.java317 final int customWidthMode = lp.width != LayoutParams.WRAP_CONTENT ? in onMeasure()
319 final int customWidth = lp.width >= 0 ? in onMeasure()
320 Math.min(lp.width, availableWidth) : availableWidth; in onMeasure()
DListPopupWindow.java552 public void setWidth(int width) { in setWidth() argument
553 mDropDownWidth = width; in setWidth()
562 public void setContentWidth(int width) { in setContentWidth() argument
566 mDropDownWidth = mTempRect.left + mTempRect.right + width; in setContentWidth()
568 setWidth(width); in setContentWidth()
DAppCompatSpinner.java557 int width = 0; in compatMeasureContentWidth() local
584 width = Math.max(width, itemView.getMeasuredWidth()); in compatMeasureContentWidth()
590 width += mTempRect.left + mTempRect.right; in compatMeasureContentWidth()
593 return width; in compatMeasureContentWidth()
DActionBarOverlayLayout.java560 final int width = child.getMeasuredWidth(); in onLayout() local
566 child.layout(childLeft, childTop, childLeft + width, childTop + height); in onLayout()
915 public LayoutParams(int width, int height) { in LayoutParams() argument
916 super(width, height); in LayoutParams()
DToolbarWidgetWrapper.java431 lp.width = ViewGroup.LayoutParams.WRAP_CONTENT; in setEmbeddedTabView()
493 lp.width = ViewGroup.LayoutParams.WRAP_CONTENT; in setNavigationMode()
DTooltipPopup.java68 mLayoutParams.width = WindowManager.LayoutParams.WRAP_CONTENT; in TooltipPopup()
DActionBarContainer.java236 lp.width = LayoutParams.MATCH_PARENT; in setTabContainer()
/appcompat/appcompat/src/main/java/androidx/appcompat/graphics/drawable/
DDrawerArrowDrawable.java237 public void setBarThickness(float width) { in setBarThickness() argument
238 if (mPaint.getStrokeWidth() != width) { in setBarThickness()
239 mPaint.setStrokeWidth(width); in setBarThickness()
240 mMaxCutForBarSize = (float) (width / 2 * Math.cos(ARROW_HEAD_ANGLE)); in setBarThickness()
/appcompat/appcompat/src/main/java/androidx/appcompat/app/
DActionBar.java1366 public LayoutParams(int width, int height) { in LayoutParams() argument
1367 super(width, height); in LayoutParams()
1371 public LayoutParams(int width, int height, int gravity) { in LayoutParams() argument
1372 super(width, height); in LayoutParams()
DAppCompatDelegateImpl.java1774 int width = WRAP_CONTENT;
1818 if (lp != null && lp.width == ViewGroup.LayoutParams.MATCH_PARENT) {
1819 width = MATCH_PARENT;
1826 width, WRAP_CONTENT,
/appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/
DButtonBarLayoutTest.kt39 buttonBar.layoutParams.width = 20 in <lambda>()
61 buttonBar.layoutParams.width = 50 in <lambda>()
/appcompat/appcompat/src/androidTest/java/androidx/appcompat/app/
DDrawerLayoutActivity.java146 drawerLp.width = drawerWidth; in onContentViewSet()
DAlertDialogTest.java1423 public TestDrawable(@ColorInt int color, int width, int height) { in TestDrawable() argument
1425 mWidth = width; in TestDrawable()