// Path: app/src/main/java/com/kong/lib/fragment/BaseFragment.java
// public class BaseFragment extends Fragment {
// 
// }
// 
// 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.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.kong.R;
import com.kong.lib.fragment.BaseFragment;
import com.kong.lib.utils.ResourceUtil;
package com.kong.app.me;



/**
 * Created by CaoPengfei on 17/7/28.
 */

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) {
// Path: app/src/main/java/com/kong/lib/fragment/BaseFragment.java
// public class BaseFragment extends Fragment {
// 
// }
// 
// 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/me/ToolBarFragment.java
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.kong.R;
import com.kong.lib.fragment.BaseFragment;
import com.kong.lib.utils.ResourceUtil;

package com.kong.app.me;



/**
 * Created by CaoPengfei on 17/7/28.
 */

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));