Make the swipe stop at the edge of button 2. This version si for Android Studio