public void translateBackgrounds(){
        this.setClipChildren(false);
        for(Map.Entry<SwipeDirection, View> entry : mBackgroundMap.entrySet()) {
            int signum = entry.getKey().isLeft() ? 1 : -1;
            entry.getValue().setTranslationX(signum*entry.getValue().getWidth());
        }
    }
public void translateBackgrounds ( ) { this . setClipChildren ( false ) ; for ( Map . Entry < SwipeDirection , View > entry : mBackgroundMap . entrySet ( ) ) { int signum = entry . getKey ( ) . isLeft ( ) ? 1 : - 1 ; entry . getValue ( ) . setTranslationX ( signum * entry . getValue ( ) . getWidth ( ) ) ; } }
Move all backgrounds to the edge of the Layout so they can be swiped in