Я написал демо на https://github.com/chenjishi/SlideActivity, Все, что вам нужно сделать, это расширить SlidingActivity в проекте, и вы получите эффект слайда, вот скриншот:
#### старый метод
1. сделать действие прозрачным
<style name="Theme.Transparent" parent="@android:style/Theme.Translucent.NoTitleBar">
<item name="android:windowAnimationStyle">@style/activityAnimation</item>
</style>
2.use SlidingPaneLayout
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.SlidingPaneLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/slide_panel"
android:layout_width="match_parent"
android:layout_height="match_parent">
<View android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="left"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#E6E6E6"
android:orientation="vertical">
</LinearLayout>
3. так что вы получите, что хотите
вы можете скользить пальцем, чтобы переместить упражнение, и вы также можете уничтожить его, сдвинув вправо большую часть экрана.