コード例 #1
0
 @Override
 public SwipeBackLayout getSwipeBackLayout() {
   return mHelper.getSwipeBackLayout();
 }
コード例 #2
0
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   mHelper.onPostCreate();
 }
コード例 #3
0
 @Override
 public View findViewById(int id) {
   View v = super.findViewById(id);
   if (v == null && mHelper != null) return mHelper.findViewById(id);
   return v;
 }
コード例 #4
0
 private void initSwipeBack() {
   mHelper = new SwipeBackActivityHelper(this);
   mHelper.onActivityCreate();
   getSwipeBackLayout().setEdgeTrackingEnabled(SwipeBackLayout.EDGE_LEFT);
   getSwipeBackLayout().setEdgeSize(100);
 }