@@ -0,0 +1,824 @@
+package com.liuguangqiang.swipeback;%0A%0Aimport android.support.v7.app.ActionBarActivity;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0A%0A/**%0A * Created by Eric on 15/3/3.%0A */%0Apublic class SwipeBackActivity extends ActionBarActivity %7B%0A%0A     SwipeBackLayout swipeBackLayout;%0A%0A    @Override%0A    public void setContentView(int layoutResID) %7B%0A        swipeBackLayout = new SwipeBackLayout(this);%0A        View view = LayoutInflater.from(this).inflate(layoutResID, null);%0A        swipeBackLayout.addView(view);%0A%0A%0A%0A        super.setContentView(swipeBackLayout);%0A    %7D%0A%0A    private void initContent()%7B%0A%0A    %7D%0A%0A    public void setDragEdge(SwipeBackLayout.DragEdge dragEdge) %7B%0A        swipeBackLayout.setDragEdge(dragEdge);%0A    %7D%0A%0A    public SwipeBackLayout getSwipeBackLayout() %7B%0A        return swipeBackLayout;%0A    %7D%0A%0A%7D%0A

Create SwipeBackActivity for using this library easy.