// Path: app/src/main/java/com/kong/app/me/ToolBarFragment.java
// public abstract class ToolBarFragment extends BaseFragment {
// 
//     private Toolbar mToolbar;
//     private TextView mTitle;
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         View view = inflater.inflate(getLayoutId(), null);
//         mToolbar = (Toolbar) view.findViewById(R.id.base_toolbar);
//         mTitle = (TextView) view.findViewById(R.id.base_toolbar_title);
//         mToolbar.setTitle("");
//         return createView(view, container, savedInstanceState);
//     }
// 
//     public void setTitle(CharSequence title) {
//         if (mTitle != null) {
//             mTitle.setText(title);
//         }
//     }
// 
//     public void setTitle(int titleId) {
//         if (mTitle != null) {
//             mTitle.setText(ResourceUtil.getString(titleId));
//         }
//     }
// 
//     public TextView getTitle() {
//         return mTitle;
//     }
// 
//     public Toolbar getToolbar() {
//         return mToolbar;
//     }
// 
//     protected abstract int getLayoutId();
// 
//     public abstract View createView(View view, ViewGroup container, Bundle savedInstanceState);
// }
// 
// Path: app/src/main/java/com/kong/lib/utils/ResourceUtil.java
// public class ResourceUtil {
// 
//     public static String getString(int resId) {
//         return getResources().getString(resId);
//     }
// 
//     public static int getColor(int resId) {
//         return getResources().getColor(resId);
//     }
// 
//     public static Drawable getDrawable(int resId) {
//         return getResources().getDrawable(resId);
//     }
// 
//     public static int getDimen(int dimen) {
//         return (int) getResources().getDimension(dimen);
//     }
// 
//     public static Resources getResources() {
//         return getContext().getResources();
//     }
// 
//     public static Context getContext() {
//         return AppRun.get().getApplicationContext();
//     }
// 
//     public static String getRawFileStr(int rawId) throws IOException {
//         InputStream is = getResources().openRawResource(rawId);
//         BufferedReader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
//         StringBuilder sb = new StringBuilder();
//         String line;
//         while ((line = reader.readLine()) != null) {
//             sb.append(line).append("\n");
//         }
//         sb.deleteCharAt(sb.length() - 1);
//         reader.close();
//         return sb.toString();
//     }
// }


import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewStub;
import android.widget.TextView;
import com.kong.R;
import com.kong.app.me.ToolBarFragment;
import com.kong.lib.utils.ResourceUtil;
import java.util.List;
        return fragment;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_gank;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mGankAdapter = new GankAdapter();
        mGangPresenter = new GangPresenter(new GankModel(),this);
        parseArguments();
    }

    private void parseArguments() {
        Bundle bundle = getArguments();
        mYear = bundle.getInt(ARG_YEAR);
        mMonth = bundle.getInt(ARG_MONTH);
        mDay = bundle.getInt(ARG_DAY);
    }

    @Override
    public View createView(View view, ViewGroup container, Bundle savedInstanceState) {
        mRecyclerView = (RecyclerView) view.findViewById(R.id.me_recycle_view);
        mErrorStup = (ViewStub) view.findViewById(R.id.stub_error_view);

        mTitle = (TextView) view.findViewById(R.id.base_toolbar_title);
        mRecyclerView = (RecyclerView) view.findViewById(R.id.me_recycle_view);
// Path: app/src/main/java/com/kong/app/me/ToolBarFragment.java
// public abstract class ToolBarFragment extends BaseFragment {
// 
//     private Toolbar mToolbar;
//     private TextView mTitle;
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         View view = inflater.inflate(getLayoutId(), null);
//         mToolbar = (Toolbar) view.findViewById(R.id.base_toolbar);
//         mTitle = (TextView) view.findViewById(R.id.base_toolbar_title);
//         mToolbar.setTitle("");
//         return createView(view, container, savedInstanceState);
//     }
// 
//     public void setTitle(CharSequence title) {
//         if (mTitle != null) {
//             mTitle.setText(title);
//         }
//     }
// 
//     public void setTitle(int titleId) {
//         if (mTitle != null) {
//             mTitle.setText(ResourceUtil.getString(titleId));
//         }
//     }
// 
//     public TextView getTitle() {
//         return mTitle;
//     }
// 
//     public Toolbar getToolbar() {
//         return mToolbar;
//     }
// 
//     protected abstract int getLayoutId();
// 
//     public abstract View createView(View view, ViewGroup container, Bundle savedInstanceState);
// }
// 
// Path: app/src/main/java/com/kong/lib/utils/ResourceUtil.java
// public class ResourceUtil {
// 
//     public static String getString(int resId) {
//         return getResources().getString(resId);
//     }
// 
//     public static int getColor(int resId) {
//         return getResources().getColor(resId);
//     }
// 
//     public static Drawable getDrawable(int resId) {
//         return getResources().getDrawable(resId);
//     }
// 
//     public static int getDimen(int dimen) {
//         return (int) getResources().getDimension(dimen);
//     }
// 
//     public static Resources getResources() {
//         return getContext().getResources();
//     }
// 
//     public static Context getContext() {
//         return AppRun.get().getApplicationContext();
//     }
// 
//     public static String getRawFileStr(int rawId) throws IOException {
//         InputStream is = getResources().openRawResource(rawId);
//         BufferedReader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
//         StringBuilder sb = new StringBuilder();
//         String line;
//         while ((line = reader.readLine()) != null) {
//             sb.append(line).append("\n");
//         }
//         sb.deleteCharAt(sb.length() - 1);
//         reader.close();
//         return sb.toString();
//     }
// }


// Path: app/src/main/java/com/kong/app/gank/GankFragment.java
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewStub;
import android.widget.TextView;
import com.kong.R;
import com.kong.app.me.ToolBarFragment;
import com.kong.lib.utils.ResourceUtil;
import java.util.List;

        return fragment;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_gank;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mGankAdapter = new GankAdapter();
        mGangPresenter = new GangPresenter(new GankModel(),this);
        parseArguments();
    }

    private void parseArguments() {
        Bundle bundle = getArguments();
        mYear = bundle.getInt(ARG_YEAR);
        mMonth = bundle.getInt(ARG_MONTH);
        mDay = bundle.getInt(ARG_DAY);
    }

    @Override
    public View createView(View view, ViewGroup container, Bundle savedInstanceState) {
        mRecyclerView = (RecyclerView) view.findViewById(R.id.me_recycle_view);
        mErrorStup = (ViewStub) view.findViewById(R.id.stub_error_view);

        mTitle = (TextView) view.findViewById(R.id.base_toolbar_title);
        mRecyclerView = (RecyclerView) view.findViewById(R.id.me_recycle_view);
        mTitle.setText(ResourceUtil.getString(R.string.tab_rec));