/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ActionMenuPresenter.java | 111 int width = mWidthLimit; 123 width -= mOverflowButton.getMeasuredWidth(); 128 mActionItemWidthLimit = width; 145 public void setWidthLimit(int width, boolean strict) { argument 146 mWidthLimit = width; 501 // can break the max actions rule, but not the width limit. 539 // We broke the width limit. Demote the whole group, they all overflow now. 710 final int width = getWidth(); 712 final int halfEdge = Math.max(width, height) / 2; 715 final int centerX = (width [all...] |
H A D | ActionMenuView.java | 175 // We already know the width mode is EXACTLY if we're here. 374 final int width = lp.cellsUsed * cellSize + lp.extraPixels; 375 child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), 388 * Measure a child view to fit within cell-based formatting. The child's width 493 final int width = v.getMeasuredWidth(); 496 final int l = midHorizontal - width / 2; 498 v.layout(l, t, l + width, t + height); 515 int width = v.getMeasuredWidth(); 518 v.layout(startRight - width, t, startRight, t + height); 519 startRight -= width 821 LayoutParams(int width, int height) argument 826 LayoutParams(int width, int height, boolean isOverflowButton) argument [all...] |
H A D | AppCompatPopupWindow.java | 108 public void update(View anchor, int xoff, int yoff, int width, int height) { 113 super.update(anchor, xoff, yoff, width, height);
|
H A D | AppCompatRatingBar.java | 60 final int width = sampleTile.getWidth() * getNumStars(); 61 setMeasuredDimension(ViewCompat.resolveSizeAndState(width, widthMeasureSpec, 0),
|
H A D | AppCompatSpinner.java | 541 int width = 0; 568 width = Math.max(width, itemView.getMeasuredWidth()); 571 // Add background padding to measured width 574 width += mTempRect.left + mTempRect.right; 577 return width;
|
H A D | ContentFrameLayout.java | 137 int width = getMeasuredWidth(); 140 widthMeasureSpec = MeasureSpec.makeMeasureSpec(width, EXACTLY); 154 if (width < min) {
|
H A D | LinearLayoutCompat.java | 267 * Get the width of the current divider drawable. 609 // See how tall everyone is. Also remember max width. 691 if (widthMode != MeasureSpec.EXACTLY && lp.width == LayoutParams.MATCH_PARENT) { 692 // The width of the linear layout will scale, and at least one 693 // child said it wanted to match our width. Set a flag 695 // we know our width. 706 allFillParent = allFillParent && lp.width == LayoutParams.MATCH_PARENT; 791 lp.leftMargin + lp.rightMargin, lp.width); 824 lp.width == LayoutParams.MATCH_PARENT; 829 allFillParent = allFillParent && lp.width 1638 setChildFrame(View child, int left, int top, int width, int height) argument 1788 LayoutParams(int width, int height) argument 1803 LayoutParams(int width, int height, float weight) argument [all...] |
H A D | ListPopupWindow.java | 172 * If used to specify a popup width, the popup will match the width of the anchor view. 179 * If used to specify a popup width, the popup will use the width of its content. 522 * @return The width of the popup window in pixels. 529 * Sets the width of the popup window in pixels. Can also be {@link #MATCH_PARENT} 532 * @param width Width of the popup window. 534 public void setWidth(int width) { argument 535 mDropDownWidth = width; 539 * Sets the width o 544 setContentWidth(int width) argument [all...] |
H A D | ScrollingTabContainerView.java | 525 final int width = getWidth(); 533 (screenPos[0] + width / 2) - screenWidth / 2, height);
|
H A D | SearchView.java | 808 * Gets the specified maximum width in pixels, if set. Returns zero if 809 * no maximum width was specified. 810 * @return the maximum width of the view 827 int width = MeasureSpec.getSize(widthMeasureSpec); 831 // If there is an upper limit, don't exceed maximum width (explicit or implicit) 833 width = Math.min(mMaxWidth, width); 835 width = Math.min(getPreferredWidth(), width); 839 // If an exact width i [all...] |
H A D | Toolbar.java | 1504 + widthUsed, lp.width); 1520 * Returns the width + uncollapsed margins 1536 getPaddingLeft() + getPaddingRight() + hMargins + widthUsed, lp.width); 1564 int width = 0; 1583 measureChildConstrained(mNavButtonView, widthMeasureSpec, width, heightMeasureSpec, 0, 1593 measureChildConstrained(mCollapseButtonView, widthMeasureSpec, width, 1604 width += Math.max(contentInsetStart, navWidth); 1609 measureChildConstrained(mMenuView, widthMeasureSpec, width, heightMeasureSpec, 0, 1619 width += Math.max(contentInsetEnd, menuWidth); 1623 width 2193 LayoutParams(int width, int height) argument 2198 LayoutParams(int width, int height, int gravity) argument [all...] |
H A D | ToolbarWidgetWrapper.java | 426 lp.width = ViewGroup.LayoutParams.WRAP_CONTENT; 488 lp.width = ViewGroup.LayoutParams.WRAP_CONTENT;
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
H A D | AlertDialogTest.java | 1328 public TestDrawable(@ColorInt int color, int width, int height) { argument 1330 mWidth = width;
|
H A D | DrawerLayoutActivity.java | 119 // Register a pre-draw listener to get the initial width of the DrawerLayout so 120 // that we can determine the width of the drawer based on the Material spec at 126 // What is the width of the entire DrawerLayout? 138 // Compute the width of the drawer and set it on the layout params. 145 drawerLp.width = drawerWidth;
|
/frameworks/support/v7/cardview/base/android/support/v7/widget/ |
H A D | CardViewDelegate.java | 32 void setMinWidthHeightInternal(int width, int height); argument
|
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/ |
H A D | CardViewEclairMr1.java | 42 final float innerWidth = bounds.width() - twoRadius - 1;
|
H A D | RoundRectDrawableWithShadow.java | 255 final boolean drawHorizontalEdges = mCardBounds.width() - 2 * inset > 0; 263 mCardBounds.width() - 2 * inset, -mCornerRadius, 274 mCardBounds.width() - 2 * inset, -mCornerRadius + mShadowSize,
|
/frameworks/support/v7/cardview/src/android/support/v7/widget/ |
H A D | CardView.java | 98 * developer also sets min width/height, they might be overridden. 464 public void setMinWidthHeightInternal(int width, int height) { 465 if (width > mUserSetMinWidth) { 466 CardView.super.setMinimumWidth(width);
|
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/ |
H A D | GridLayout.java | 137 * {@link View#GONE GONE}, as having zero width and height. This is subtly different from 139 * view was alone in a column, that column would itself collapse to zero width if and only if 325 * one of GridLayout's children is dependent on its width - and its width is, in turn, 332 * deriving its height for a given width, but not the other way around. 336 * the height of the intended layout greatly exceeds its width. 863 int width = getWidth(); 864 graphics.drawLine(width - x1, y1, width - x2, y2, paint); 912 measureChildWithMargins2(c, widthSpec, heightSpec, lp.width, l 1938 LayoutParams( int width, int height, int left, int top, int right, int bottom, Spec rowSpec, Spec columnSpec) argument [all...] |
/frameworks/support/v7/gridlayout/tests/src/android/support/v7/widget/ |
H A D | GridLayoutTest.java | 73 assertTrue("left item should get some width", left > 0); 74 assertTrue("right item should get some width", right > 0); 86 assertTrue("left item should get some width", left > 0); 87 assertTrue("right item should get some width", right > 0); 99 assertTrue("left item should get some width", left > 0); 100 assertTrue("right item should get some width", right > 0); 141 assertEquals(3, generated.width);
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouteButton.java | 315 final int width = getWidth(); 324 screenWidth - screenPos[0] - width / 2, height); 435 final int width = Math.max(mMinWidth, mRemoteIndicator != null ? 446 measuredWidth = Math.min(widthSize, width); 450 measuredWidth = width;
|
H A D | MediaRouteControllerDialog.java | 436 * Sets the width of the dialog. Also called when configuration changes. 439 int width = MediaRouteDialogHelper.getDialogWidth(mContext); 440 getWindow().setLayout(width, ViewGroup.LayoutParams.WRAP_CONTENT); 443 mDialogContentWidth = width - decorView.getPaddingLeft() - decorView.getPaddingRight(); 584 MeasureSpec.makeMeasureSpec(getWindow().getAttributes().width, MeasureSpec.EXACTLY), 673 lp.width = mVolumeGroupListItemIconSize; 1037 // For landscape art, fit width to dialog width.
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
H A D | Palette.java | 861 final int regionWidth = mRegion.width();
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | PreferenceFragmentCompat.java | 766 final int width = parent.getWidth(); 771 mDivider.setBounds(0, top, width, top + mDividerHeight);
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | GridLayoutManager.java | 288 final int width, height; 294 width = chooseSize(wSpec, mCachedBorders[mCachedBorders.length - 1] + horizontalPadding, 297 final int usedWidth = childrenBounds.width() + horizontalPadding; 298 width = chooseSize(wSpec, usedWidth, getMinimumWidth()); 302 setMeasuredDimension(width, height); 569 mOrientation == HORIZONTAL ? lp.height : lp.width, 573 mOrientation == VERTICAL ? lp.height : lp.width, true); 581 final boolean applyInsets = lp.width == ViewGroup.LayoutParams.FILL_PARENT; 604 mOrientation == HORIZONTAL ? lp.height : lp.width, false); 607 mOrientation == VERTICAL ? lp.height : lp.width, tru 1093 LayoutParams(int width, int height) argument [all...] |