@Override public SwipeBackLayout getSwipeBackLayout() { return mHelper.getSwipeBackLayout(); }
@Override protected void onPostCreate(Bundle savedInstanceState) { super.onPostCreate(savedInstanceState); mHelper.onPostCreate(); }
@Override public View findViewById(int id) { View v = super.findViewById(id); if (v == null && mHelper != null) return mHelper.findViewById(id); return v; }
private void initSwipeBack() { mHelper = new SwipeBackActivityHelper(this); mHelper.onActivityCreate(); getSwipeBackLayout().setEdgeTrackingEnabled(SwipeBackLayout.EDGE_LEFT); getSwipeBackLayout().setEdgeSize(100); }