Lines Matching refs:right

347             // First reset "left" and "right" drawables to their initial values
358 // Use "end" drawable as "right" drawable if the "right" drawable was not defined
365 // JB-MR1+ normal case: "start" / "end" drawables are overriding "left" / "right"
1244 // This call will save the initial left/right drawables
1821 * Returns the right padding of the view, plus space for the right
1946 * Returns the total right padding of the view, including the right
1989 * right of, and below the text. Use {@code null} if you do not want a
2002 @Nullable Drawable right, @Nullable Drawable bottom) {
2015 final boolean drawables = left != null || top != null || right != null || bottom != null;
2055 if (dr.mDrawableRight != right && dr.mDrawableRight != null) {
2058 dr.mDrawableRight = right;
2080 if (right != null) {
2081 right.setState(state);
2082 right.copyBounds(compoundRect);
2083 right.setCallback(this);
2111 // Save initial left/right drawables
2114 dr.mDrawableRightInitial = right;
2125 * right of, and below the text. Use 0 if you do not want a Drawable there.
2133 * @param right Resource identifier of the right Drawable.
2142 public void setCompoundDrawablesWithIntrinsicBounds(int left, int top, int right, int bottom) {
2146 right != 0 ? context.getDrawable(right) : null,
2152 * right of, and below the text. Use {@code null} if you do not want a
2165 @Nullable Drawable top, @Nullable Drawable right, @Nullable Drawable bottom) {
2170 if (right != null) {
2171 right.setBounds(0, 0, right.getIntrinsicWidth(), right.getIntrinsicHeight());
2179 setCompoundDrawables(left, top, right, bottom);
2375 * Returns drawables for the left, top, right, and bottom borders.
2449 public void setPadding(int left, int top, int right, int bottom) {
2451 right != mPaddingRight ||
2458 super.setPadding(left, top, right, bottom);
4076 * of the array except for right before another call to setText(),
4617 * Sets the right-hand compound drawable of the TextView to the "error"
4638 * Sets the right-hand compound drawable of the TextView to the specified
4815 (int) FloatMath.ceil(horizontalPadding + TEMP_RECTF.right + thick),
4822 bounds.right + horizontalPadding, bounds.bottom + verticalPadding);
4883 int left, right;
4886 right = (int) (mLayout.getPrimaryHorizontal(end) + 1.0);
4888 right += compoundPaddingLeft;
4892 right = getWidth() - getCompoundPaddingRight();
4896 mScrollX + right, verticalPadding + bottom);
5124 dirty.right + scrollX, dirty.bottom + scrollY);
5294 final int right = mRight;
5311 int hspace = right - left - compoundPaddingRight - compoundPaddingLeft;
5328 canvas.translate(scrollX + right - left - mPaddingRight
5389 float clipRight = right - left - getFudgedPaddingRight() + scrollX;
5469 r.right = r.left + 4;
5477 r.right = (int) mLayout.getPrimaryHorizontal(selEnd);
5490 r.right = (int)TEMP_RECTF.right+1;
5516 * If bounds is not null, return the top, left, right, bottom extents
6075 // Also we just don't want to trust clients to do the right thing.
6877 protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
6878 super.onLayout(changed, left, top, right, bottom);
6908 // Convert to left, center, or right alignment.
6924 int right = (int) FloatMath.ceil(layout.getLineRight(line));
6926 if (right - left < hspace) {
6927 scrollx = (right + left) / 2 - hspace / 2;
6930 scrollx = right - hspace;
6936 int right = (int) FloatMath.ceil(layout.getLineRight(line));
6937 scrollx = right - hspace;
6999 // in left-to-right modes, because in a right to left alignment,
7000 // we want to scroll to keep the line-right on the screen, as other
7001 // lines are likely to have text flush with the right margin, which
7005 // the latter measurement for centering and right alignment, but for
7007 // right where it is most likely to be annoying.
7015 int right = (int) FloatMath.ceil(layout.getLineRight(line));
7020 if (!mHorizontallyScrolling && right - left > hspace && right > x) {
7022 right = Math.max(x, left + hspace);
7057 if (right - hs < hspace)
7058 hs = right - hspace;
7060 if (right - hs < hspace)
7061 hs = right - hspace;
7065 if (right - left <= hspace) {
7069 hs = left - (hspace - (right - left)) / 2;
7070 } else if (x > right - hslack) {
7072 * If we are near the right edge, keep the right edge
7075 hs = right - hspace;
7087 } else if (right < hs + hspace) {
7089 * Is there whitespace visible at the right? Fix it if so.
7091 hs = right - hspace;
7137 // or right. If it isn't withing the bounds, then this request
7231 // TODO Take left/right padding into account too?
7239 r.right += horizontalOffset;
8209 // right filter instead here.