package me.yokeyword.sample.demo_wechat.base;

import android.support.v7.widget.Toolbar;
import android.view.View;

import me.yokeyword.fragmentation_swipeback.SwipeBackFragment;
import me.yokeyword.sample.R;

/**
 * Created by YoKeyword on 16/2/7.
 */
public class BaseBackFragment extends SwipeBackFragment {
    private static final String TAG = "Fragmentation";

    protected void initToolbarNav(Toolbar toolbar) {
        toolbar.setNavigationIcon(R.drawable.ic_arrow_back_white_24dp);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                _mActivity.onBackPressed();
            }
        });
    }
}

@@ -40,16 +40,86 @@
 .base;%0A%0A
+import android.os.Bundle;%0Aimport android.support.annotation.Nullable;%0A
 import a
@@ -430,16 +430,196 @@
 tion%22;%0A%0A
+    @Override%0A    public void onActivityCreated(@Nullable Bundle savedInstanceState) %7B%0A        super.onActivityCreated(savedInstanceState);%0A        setParallaxOffset(0.5f);%0A    %7D%0A%0A
     prot

Add a sample of setParallaxOffset().