Lines Matching defs:top
297 // it is not the top most view of its parent. This is not necessary when the touch event is
324 // The ViewDragHelper tries to capture only the top-most View. We have to explicitly tell it
389 int top;
392 top = mMinOffset;
395 top = mParentHeight;
400 top = mMinOffset;
403 top = mMaxOffset;
407 top = mMaxOffset;
410 if (mViewDragHelper.smoothSlideViewTo(child, child.getLeft(), top)) {
621 int top;
623 top = mMaxOffset;
625 top = mMinOffset;
627 top = mParentHeight;
631 if (mViewDragHelper.smoothSlideViewTo(child, child.getLeft(), top)) {
660 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) {
661 dispatchOnSlide(top);
673 int top;
676 top = mMinOffset;
679 top = mParentHeight;
684 top = mMinOffset;
687 top = mMaxOffset;
691 top = mMaxOffset;
694 if (mViewDragHelper.settleCapturedViewAt(releasedChild.getLeft(), top)) {
704 public int clampViewPositionVertical(View child, int top, int dy) {
705 return MathUtils.clamp(top, mMinOffset, mHideable ? mParentHeight : mMaxOffset);
723 void dispatchOnSlide(int top) {
726 if (top > mMaxOffset) {
727 mCallback.onSlide(bottomSheet, (float) (mMaxOffset - top) /
731 (float) (mMaxOffset - top) / ((mMaxOffset - mMinOffset)));