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; 
Stop searching for code, let great code find you!  Add Codota to your java IDE