// Path: app/src/main/java/com/popomusic/util/UIcollector.java
// @SuppressWarnings("ALL")
// public class UIcollector {
// 
// 
//     public static Context getContext() {
//         return BaseActivity.getContext();
//     }
// 
//     public static Activity getActivity() {
//         return BaseActivity.getActivity();
//     }
// 
// 
//     public static Drawable getDrawable(int id) {
//         return getContext().getResources().getDrawable(id);
//     }
// 
//     public static int getColor(int id) {
//         return getContext().getResources().getColor(id);
//     }
// 
//     public static String getString(int id) {
//         return getContext().getResources().getString(id);
//     }
// 
// 
//     public static String[] getStringArray(int id) {
//         return getContext().getResources().getStringArray(id);
//     }
// }


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.Toast;
import com.popomusic.util.UIcollector;
import butterknife.ButterKnife;
package com.popomusic.fragment;




/**
 * Created by popo on 2017/4/6 0006.
 */
public abstract class BaseFragment extends Fragment {

    protected boolean isVisible;
    protected static final String FRAGMENT_INDEX = "fragment_index";
    protected int index = 0;
    protected int page = 1;
    protected boolean isNull = false;
    protected View view;


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Bundle bundle = getArguments();
        if (bundle != null) {
            index = bundle.getInt(FRAGMENT_INDEX);

        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = initView();
        Log.i("BaseFragment", getClass().getSimpleName());
        ButterKnife.bind(this,view);
        return view;
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        initData();
    }

// Path: app/src/main/java/com/popomusic/util/UIcollector.java
// @SuppressWarnings("ALL")
// public class UIcollector {
// 
// 
//     public static Context getContext() {
//         return BaseActivity.getContext();
//     }
// 
//     public static Activity getActivity() {
//         return BaseActivity.getActivity();
//     }
// 
// 
//     public static Drawable getDrawable(int id) {
//         return getContext().getResources().getDrawable(id);
//     }
// 
//     public static int getColor(int id) {
//         return getContext().getResources().getColor(id);
//     }
// 
//     public static String getString(int id) {
//         return getContext().getResources().getString(id);
//     }
// 
// 
//     public static String[] getStringArray(int id) {
//         return getContext().getResources().getStringArray(id);
//     }
// }


// Path: app/src/main/java/com/popomusic/fragment/BaseFragment.java
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.Toast;
import com.popomusic.util.UIcollector;
import butterknife.ButterKnife;

package com.popomusic.fragment;




/**
 * Created by popo on 2017/4/6 0006.
 */
public abstract class BaseFragment extends Fragment {

    protected boolean isVisible;
    protected static final String FRAGMENT_INDEX = "fragment_index";
    protected int index = 0;
    protected int page = 1;
    protected boolean isNull = false;
    protected View view;


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Bundle bundle = getArguments();
        if (bundle != null) {
            index = bundle.getInt(FRAGMENT_INDEX);

        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = initView();
        Log.i("BaseFragment", getClass().getSimpleName());
        ButterKnife.bind(this,view);
        return view;
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        initData();
    }

    @Override