天天看点

ViewPager之PageTransformer接口

前几天看到用到ViewPager的时候,看到它内部有一个接口:PageTransformer,如下:

public interface PageTransformer {
        /**
         * Apply a property transformation to the given page.
         *
         * @param page Apply the transformation to this page
         * @param position Position of page relative to the current front-and-center
         *                 position of the pager. 0 is front and center. 1 is one full
         *                 page position to the right, and -1 is one page position to the left.
         */
        public void transformPage(View page, float position);
    }
           

只有一个方法,两个回调参数:view 和position。具体在什么地方回调的呢,查看ViewPager的源码找到回调的地方在onPageScrolled中回调的,如下:

protected void onPageScrolled(int position, float offset, int offsetPixels) {
        // Offset any decor views if needed - keep them on-screen at all times.
        if (mDecorChildCount > 0) {
            final int scrollX = getScrollX();
            int paddingLeft = getPaddingLeft();
            int paddingRight = getPaddingRight();
            final int width = getWidth();
            final int childCount = getChildCount();
            for (int i = 0; i < childCount; i++) {
                final View child = getChildAt(i);
                final LayoutParams lp = (LayoutParams) child.getLayoutParams();
                if (!lp.isDecor) continue;

                final int hgrav = lp.gravity & Gravity.HORIZONTAL_GRAVITY_MASK;
                int childLeft = 0;
                switch (hgrav) {
                    default:
                        childLeft = paddingLeft;
                        break;
                    case Gravity.LEFT:
                        childLeft = paddingLeft;
                        paddingLeft += child.getWidth();
                        break;
                    case Gravity.CENTER_HORIZONTAL:
                        childLeft = Math.max((width - child.getMeasuredWidth()) / 2,
                                paddingLeft);
                        break;
                    case Gravity.RIGHT:
                        childLeft = width - paddingRight - child.getMeasuredWidth();
                        paddingRight += child.getMeasuredWidth();
                        break;
                }
                childLeft += scrollX;

                final int childOffset = childLeft - child.getLeft();
                if (childOffset != 0) {
                    child.offsetLeftAndRight(childOffset);
                }
            }
        }

        if (mOnPageChangeListener != null) {
            mOnPageChangeListener.onPageScrolled(position, offset, offsetPixels);
        }
        if (mInternalPageChangeListener != null) {
            mInternalPageChangeListener.onPageScrolled(position, offset, offsetPixels);
        }

        if (mPageTransformer != null) {
            final int scrollX = getScrollX();
            final int childCount = getChildCount();
            for (int i = 0; i < childCount; i++) {
                final View child = getChildAt(i);
                final LayoutParams lp = (LayoutParams) child.getLayoutParams();

                if (lp.isDecor) continue;

                final float transformPos = (float) (child.getLeft() - scrollX) / getClientWidth();
                mPageTransformer.transformPage(child, transformPos);
            }
        }

        mCalledSuper = true;
    }
           

然后打印Log发现每次滑动ViewPager的时候系统会回调三次,为什么是三次呢?(ViewPager可见的一页和预先加载的一页还有就是缓存一页)见l如下log:

从左往右:

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.016666668

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.98333335

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.0166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.016666668

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.98333335

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.0166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.025

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.975

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.025

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.033333335

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.96666664

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.0333333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.0375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.9625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.0375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.054166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.9458333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.0541667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.054166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.9458333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.0541667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.058333334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.94166666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.0583333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.0625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.9375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.0625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.07083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.9291667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.0708333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.075

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.925

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.075

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.075

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.925

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.075

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.083333336

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.9166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.0833334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.09166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.90833336

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.0916667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.09583333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.90416664

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.0958333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.104166664

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.8958333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.1041666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.1125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.8875

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.1125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.11666667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.8833333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.1166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.12916666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.87083334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.1291667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.13333334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.8666667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.1333333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.14166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.85833335

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.1416667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.15416667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.84583336

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.1541667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.1625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.8375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.1625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.17083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.82916665

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.1708333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.17916666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.8208333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.1791667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.18333334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.81666666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.1833333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.1875

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.8125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.1875

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.19583334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.8041667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.1958333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.20416667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.79583335

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.2041667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.2125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.7875

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.2125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.22083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.77916664

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.2208333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.23333333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.76666665

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.2333333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.24166666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.7583333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.2416667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.25416666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.74583334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.2541667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.26666668

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.73333335

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.2666667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.29166666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.7083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.2916666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.30833334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.69166666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.3083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.32083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.6791667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.3208333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.34583333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.65416664

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.3458333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.37083334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.62916666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.3708333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.39583334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.6041667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.3958334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.41666666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.5833333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.4166666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.43333334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.56666666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.4333333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.45416668

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.54583335

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.4541667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.4625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.5375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.4625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.48333332

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.51666665

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.4833333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.49166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.5083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.4916667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.5125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.4875

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.5125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.5208333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.47916666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.5208334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.53333336

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.46666667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.5333333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.5416667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.45833334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.5416666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.5625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.4375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.5625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.5708333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.42916667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.5708333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.59166664

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.40833333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.5916667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.59583336

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.40416667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.5958333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.62083334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.37916666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.6208333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.64166665

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.35833332

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.6416667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.65416664

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.34583333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.6541667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.675

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.325

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.675

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.6791667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.32083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.6791667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.70416665

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.29583332

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.7041667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.7125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.2875

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.7125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.7375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.2625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.7375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.74583334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.25416666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.7458333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.7583333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.24166666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.7583333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.7708333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.22916667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.7708334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.78333336

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.21666667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.7833333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.7916667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.20833333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.7916666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.8125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.1875

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.8125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.81666666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.18333334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.8166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.825

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.175

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.825

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.8333333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.16666667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.8333334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.8375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.1625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.8375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.84583336

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.15416667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.8458333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.8541667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.14583333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.8541666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.8625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.1375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.8625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.8666667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.13333334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.8666667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.8666667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.13333334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.8666667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.87916666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.12083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.8791667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.89166665

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.108333334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.8916667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.8958333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.104166664

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.8958334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.90833336

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.09166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.9083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.9166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.083333336

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.9166666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.925

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.075

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.925

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.9291667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.07083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.9291667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.925

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.075

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.925

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.9375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.0625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.9375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.9375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.0625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.9375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.9458333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.054166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.9458333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.95

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.05

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.95

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.95416665

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.045833334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.9541667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.9625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.0375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.9625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.9625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.0375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.9625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.975

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.025

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.975

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.98333335

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.016666668

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.9833333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.98333335

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.016666668

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.9833333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:0.99583334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-0.004166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:1.9958333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:1.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:0.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:2.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:1.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:0.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:2.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:1.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:0.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:2.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:1.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:0.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:2.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:1.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:0.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:2.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:1.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:0.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:2.0

E/tlh     ( 4901): =======================

从右往左:

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.008333334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.0083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.9916667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.029166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.0291667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.97083336

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.0625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.0625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.9375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.0875

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.0875

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.9125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.108333334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.1083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.89166665

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.14166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.1416667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.85833335

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.15833333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.1583333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.84166664

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.19583334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.1958333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.8041667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.2125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.2125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.7875

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.2375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.2375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.7625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.25416666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.2541667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.74583334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.275

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.275

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.725

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.3

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.3

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.7

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.325

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.325

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.675

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.34583333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.3458333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.65416664

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.37916666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.3791667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.62083334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.39583334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.3958334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.6041667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.42083332

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.4208333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.57916665

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.44166666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.4416667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.55833334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.45416668

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.4541667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.54583335

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.475

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.475

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.525

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.4875

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.4875

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.5125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.5

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.5

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.5

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.525

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.525

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.475

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.5375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.5375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.4625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.56666666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.5666667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.43333334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.59166664

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.5916667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.40833333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.625

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.375

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.65416664

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.6541667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.34583333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.67083335

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.6708333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.32916668

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.6958333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.6958333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.30416667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.7125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.7125

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.2875

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.7291667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.7291666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.27083334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.7583333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.7583333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.24166666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.77916664

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.7791667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.22083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.80833334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.8083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.19166666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.82916665

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.8291667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.17083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.84583336

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.8458333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.15416667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.85833335

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.8583333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.14166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.8833333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.8833333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.11666667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.9

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.9

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.1

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.9166667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.9166666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.083333336

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.9291667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.9291667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.07083333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.94166666

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.9416667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.058333334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.95416665

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.9541667

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.045833334

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.975

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.975

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.025

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-0.98333335

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-1.9833333

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.016666668

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-1.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-2.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-1.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-2.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-1.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-2.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-1.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-2.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-1.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-2.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-1.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-2.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108690312

E/tlh     ( 4901): position:-1.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108686832

E/tlh     ( 4901): position:-2.0

E/tlh     ( 4901): =======================

E/tlh     ( 4901): view,hashCode:1108692120

E/tlh     ( 4901): position:0.0

E/tlh     ( 4901): =======================

观察相同View(相同的hashCode),在滑动时候position的变化:

当从左往右时:中的View对应的position值的变化:(0,1],左边的View对应的position值的变化:(-1,0],右边View对应position值的变化:(1,2]

当从右往左时:中的View对应的position值的变化:[-2,-1),左边的View对应的position值的变化:[-1,0),右边View对应position值的变化:[0,1)

现在就可以根据PageTransformer接口中回调的position去操作对应的View,例如:

@Override
	public void transformPage(View view, float position) {
		// TODO Auto-generated method stub
		final float width = view.getWidth();
		final float height = view.getHeight();

		Log.e("tlh", "view,hashCode:" + view.hashCode());
		Log.e("tlh", "position:" + position);
		Log.e("tlh", "=======================");

		if (position > -1 || position < 1) {

			float f = 1f - (position < 0 ? Math.abs(position) : position);
			view.setScaleX(f < MIN_SCALE ? MIN_SCALE : f);
			view.setScaleY(f < MIN_SCALE ? MIN_SCALE : f);

		}

	}
           

继续阅读