Code example for ViewPager.OnPageChangeListener

Methods: getHeight

        // draw the bottom bar 
        final int bottomBarTop = getHeight() - getPaddingBottom()
                - mBottomBarHeight;
        canvas.drawRect(0, bottomBarTop, getWidth(), bottomBarTop
                + mBottomBarHeight, mCachedTabPaint);
    protected float getLeftFadingEdgeStrength() { 
        // forced so that we will always have the left fading edge 
        return 1.0f; 
    protected float getRightFadingEdgeStrength() { 
        // forced so that we will always have the right fading edge 
        return 1.0f; 
Contextual code suggestions in your IDE  Get Codota for Java