package com.qtao.kaoyanknowledge.ui.fragment;

import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.qtao.kaoyanknowledge.R;
import com.qtao.kaoyanknowledge.ui.MainActivity;

public class MajorFragment  extends Fragment {

    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        ((MainActivity) activity).getFadingActionBarHelper().setActionBarAlpha(255);
    }



    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View contactsLayout = inflater.inflate(R.layout.major_layout,
                container, false);
        return contactsLayout;
    }


}
@@ -288,20 +288,20 @@
 edge.ui.
-Main
+Base
 Activity
@@ -330,17 +330,16 @@
 ragment 
- 
 extends 
@@ -448,100 +448,16 @@
 y);%0A
-        ((MainActivity) activity).getFadingActionBarHelper().setActionBarAlpha(255);
 %0A    %7D%0A%0A
 %0A%0A  
@@ -452,18 +452,16 @@
 %0A    %7D%0A%0A
-%0A%0A
     @Ove
@@ -611,29 +611,14 @@
     
-View contactsLayout =
+return
  inf
@@ -697,40 +697,236 @@
     
+%7D%0A%0A
     
-return contactsLayout
+@Override%0A    public void onActivityCreated(Bundle savedInstanceState) %7B%0A        super.onActivityCreated(savedInstanceState);%0A        ((BaseActivity) getActivity()).getFadingActionBarHelper().setActionBarAlpha(255)
 ;%0A    %7D%0A
 %0A%0A%7D
@@ -922,11 +922,9 @@
 ;%0A    %7D%0A
-%0A%0A
 %7D

Add SuperToast, fix bug