Code example for ViewPager.OnPageChangeListener

Methods: getHeight, getPaddingBottom

        public void draw(Canvas canvas) {
                // 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() { 
Stop searching for code, let great code find you!  Add Codota to your java IDE