(Today, we will bring you the effect of sliding to the right to destroy the Activity. Activtiy will destroy it with the movement of the finger. Sliding and destroying the Activity will first use GestureDetector to achieve this effect. When the gesture slides on the screen, it will use onFling method, so we can achieve the effect we want by doing discrimination and operation in this method. This document includes the following attachments:)