Lines Matching defs:top

326  * expressed as a pair of <em>left</em> and <em>top</em> coordinates, and
335 * top, or Y, coordinate of the rectangle representing the view. These methods
376 * is expressed in pixels for the left, top, right and bottom parts of the view.
397 * pass is implemented in {@link #measure(int, int)} and is a top-down traversal
401 * {@link #layout(int,int,int,int)} and is also top-down. During
2489 * Scroll indicator direction for the top edge of the view.
2739 * if the user swipes from the top of the screen.
2741 * system gestures, such as swiping from the top of the screen. These transient system bars
3191 * The distance in pixels from the top edge of this view's parent
3192 * to the top edge of this view.
3198 * The distance in pixels from the top edge of this view's parent
3235 * The top padding in pixels, that is the distance in pixels between the
3236 * top edge of this view and the top edge of its content.
4886 // Some day maybe we'll break this into top/left/start/etc. and let the
4960 * For example, to enable the top scroll indicatorExample: {@code setScrollIndicators
5001 * For example, if the top and left scroll indicators are enabled and all
5542 rectangle.set((int) position.left, (int) position.top,
5574 * to give focus to the first focusable View from the top. Hence, if this
5575 * View is the first from the top that can take focus, then all callbacks
6127 position.top = Math.max(position.top, 0);
6148 outRect.set((int) (position.left + 0.5f), (int) (position.top + 0.5f),
6252 structure.setDimens(rect.left, rect.top, 0, 0, rect.width(), rect.height());
7095 * windows, one on the top of the window, and one on the bottom),
7165 internalSetPadding(localInsets.left, localInsets.top,
7267 * @return WindowInsets from the top of the view hierarchy or null if View is detached
7294 inoutInsets.top -= overscan.top;
9219 * from the top of the view tree down to the currently focused view. If this
9541 * on top of yours that takes input focus, then your own window will lose
9705 outRect.top += insets.top;
10705 * Change the view's z order in the tree, so it's on top of other sibling
10789 * @param top The new value of the view's top property.
10793 * @param oldTop The previous value of the view's top property.
10797 void onLayoutChange(View v, int left, int top, int right, int bottom,
10867 * Return the scrolled top position of this view. This is the top edge of
10871 * @return The top edge of the displayed part of your view, in pixels.
10908 outRect.top = mScrollY;
11542 * @return The top of this view, in pixels.
11550 * Sets the top position of this view relative to its parent. This method is meant to be called
11554 * @param top The top of this view, in pixels.
11556 public final void setTop(int top) {
11557 if (top != mTop) {
11563 if (top < mTop) {
11564 minTop = top;
11565 yLoc = top - mTop;
11580 mTop = top;
11816 * {@link #getTop() top} property.
11828 * the y value passed in and the current {@link #getTop() top} property.
11918 * The vertical location of this view relative to its {@link #getTop() top} position.
11922 * @return The vertical position of this view relative to its top position,
11931 * Sets the vertical location of this view relative to its {@link #getTop() top} position.
11935 * @param translationY The vertical position of this view relative to its top position,
12175 outRect.set((int) tmpRect.left + mLeft, (int) tmpRect.top + mTop,
12634 invalidateInternal(dirty.left - scrollX, dirty.top - scrollY,
12648 * @param t the top position of the dirty region
12840 (int) Math.floor(boundingRect.top),
13112 * @param top The top coordinate of the rectangle to invalidate.
13120 public void postInvalidate(int left, int top, int right, int bottom) {
13121 postInvalidateDelayed(0, left, top, right, bottom);
13156 * @param top The top coordinate of the rectangle to invalidate.
13164 public void postInvalidateDelayed(long delayMilliseconds, int left, int top,
13174 info.top = top;
13208 * @param top The top coordinate of the rectangle to invalidate.
13215 public void postInvalidateOnAnimation(int left, int top, int right, int bottom) {
13223 info.top = top;
13331 * Returns the strength, or intensity, of the top faded edge. The strength is
13338 * @return the intensity of the top fade as a float between 0.0f and 1.0f
13766 out.top = mScrollY;
13790 dr.setBounds(rect.left, rect.top, rect.right, rect.top + h);
13817 dr.setBounds(rect.left, rect.top, rect.left + w, rect.bottom);
13826 dr.setBounds(rect.right - w, rect.top, rect.right, rect.bottom);
13899 int top;
13914 top = scrollY + height - size - (mUserPaddingBottom & inside);
13917 bottom = top + size;
13918 onDrawHorizontalScrollBar(canvas, scrollBar, left, top, right, bottom);
13920 invalidate(left, top, right, bottom);
13947 top = scrollY + (mPaddingTop & inside);
13950 onDrawVerticalScrollBar(canvas, scrollBar, left, top, right, bottom);
13952 invalidate(left, top, right, bottom);
14451 * Retrieve a unique token identifying the top-level "real" window of
15276 * view will always be drawn on top of a solid color.
15639 * Amount by which to extend the top fading region. Called only when
15642 * @return The top padding offset in pixels.
15671 int top = mPaddingTop;
15672 if (offsetRequired) top += getTopPaddingOffset();
15673 return top;
15812 final int top = mTop + (int) region.top;
15813 parent.invalidate(left, top, left + (int) (region.width() + .5f),
15814 top + (int) (region.height() + .5f));
16228 int top = mScrollY + getFadeTop(offsetRequired);
16229 int bottom = top + getFadeHeight(offsetRequired);
16240 // clip the fade length if top and bottom fades overlap
16242 if (verticalEdges && (top + length > bottom - length)) {
16243 length = (bottom - top) / 2;
16272 canvas.saveLayer(left, top, right, top + length, null, flags);
16280 canvas.saveLayer(left, top, left + length, bottom, null, flags);
16284 canvas.saveLayer(right - length, top, right, bottom, null, flags);
16303 matrix.postTranslate(left, top);
16306 canvas.drawRect(left, top, right, top + length, p);
16321 matrix.postTranslate(left, top);
16324 canvas.drawRect(left, top, left + length, bottom, p);
16330 matrix.postTranslate(right, top);
16333 canvas.drawRect(right - length, top, right, bottom, p);
16420 // Reverse left/top translation done by drawable canvas, which will
16424 canvas.translate(-bounds.left, -bounds.top);
16433 renderNode.setLeftTopRightBottom(bounds.left, bounds.top, bounds.right, bounds.bottom);
16462 * Override this if your view is known to always be drawn on top of a solid color background,
16589 private boolean setOpticalFrame(int left, int top, int right, int bottom) {
16595 top + parentInsets.top - childInsets.top,
16597 bottom + parentInsets.top + childInsets.bottom);
16663 * @param top Top position, relative to parent
16667 protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
16676 * @param top Top position, relative to parent
16683 protected boolean setFrame(int left, int top, int right, int bottom) {
16687 Log.d("View", this + " View.setFrame(" + left + "," + top + ","
16691 if (mLeft != left || mRight != right || mTop != top || mBottom != bottom) {
16700 int newHeight = bottom - top;
16707 mTop = top;
16749 public void setLeftTopRightBottom(int left, int top, int right, int bottom) {
16750 setFrame(left, top, right, bottom);
16794 invalidate(dirty.left + scrollX, dirty.top + scrollY,
17268 internalSetPadding(padding.right, padding.top, padding.left, padding.bottom);
17274 internalSetPadding(padding.left, padding.top, padding.right, padding.bottom);
17440 * foreground drawable, if non-null, is always drawn on top of the view's content.
17451 * Supply a Drawable that is to be rendered on top of all of the content in the view.
17453 * @param foreground the Drawable to be drawn on top of the children
17656 * drawable or other view-specific decorations. The foreground is drawn on top of the
17702 * @param top the top padding in pixels
17706 public void setPadding(int left, int top, int right, int bottom) {
17718 internalSetPadding(left, top, right, bottom);
17724 protected void internalSetPadding(int left, int top, int right, int bottom) {
17763 if (mPaddingTop != top) {
17765 mPaddingTop = top;
17795 * @param top the top padding in pixels
17799 public void setPaddingRelative(int start, int top, int end, int bottom) {
17811 internalSetPadding(end, top, start, bottom);
17817 internalSetPadding(start, top, end, bottom);
17822 * Returns the top padding of this view.
17824 * @return the top padding in pixels
18673 * <p>Return the offset of the widget's text baseline from the widget's top
18772 int oHeight = insets.top + insets.bottom;
18890 int opticalHeight = insets.top + insets.bottom;
19748 if (db.top > 0) {
19749 //Log.i("VIEW", "Drawable top " + db.top + " > view 0");
19750 r.op(0, 0, w, db.top, Region.Op.UNION);
19844 final int top = -maxOverScrollY;
19860 } else if (newScrollY < top) {
19861 newScrollY = top;
21516 int top;
21545 * The top view of the hierarchy.
22448 stream.addProperty("layout:top", mTop);