// Path: app/src/main/java/com/github/cchao/touchnews/ui/fragment/base/BaseFragment.java
// public abstract class BaseFragment extends BaseLazyFragment {
//     protected Toolbar mToolbar;
//     protected View mRootView;
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         mRootView = inflater.inflate(getLayoutId(), null);
//         ButterKnife.bind(this, mRootView);
//         mToolbar = ButterKnife.findById(mRootView, R.id.toolbar);
//         return mRootView;
//     }
// 
//     @Override
//     public void onViewCreated(View view, Bundle savedInstanceState) {
//         super.onViewCreated(view, savedInstanceState);
//         initialize();
//     }
// 
//     protected void initialize() {
//     }
// 
//     @Override
//     public void onFirstUserVisible() {
//         super.onFirstUserVisible();
//         setSupportActionBar();
//     }
// 
//     //布局ID
//     protected abstract
//     @LayoutRes
//     int getLayoutId();
// 
//     @Override
//     public void onUserVisible() {
//         super.onUserVisible();
//         setSupportActionBar();
//     }
// 
//     /**
//      * 设置toolbar
//      */
//     private void setSupportActionBar() {
//         ((AppCompatActivity) getActivity()).setSupportActionBar(mToolbar);
//         ((HomeActivity) getActivity()).addDrawerListener(mToolbar);
//     }
// }


import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.github.cchao.touchnews.ui.fragment.base.BaseFragment;
import java.util.List;
package com.github.cchao.touchnews.ui.adapter;




/**
 * Created by cchao on 2016/3/30.
 * E-mail:   cchao1024@163.com
 * Description: 新闻频道 页面Adapter
 */
public class NewsFragmentsPagerAdapter extends FragmentPagerAdapter {
    private List<BaseFragment> mListFragments = null;
    private String[] mTitles = null;

// Path: app/src/main/java/com/github/cchao/touchnews/ui/fragment/base/BaseFragment.java
// public abstract class BaseFragment extends BaseLazyFragment {
//     protected Toolbar mToolbar;
//     protected View mRootView;
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         mRootView = inflater.inflate(getLayoutId(), null);
//         ButterKnife.bind(this, mRootView);
//         mToolbar = ButterKnife.findById(mRootView, R.id.toolbar);
//         return mRootView;
//     }
// 
//     @Override
//     public void onViewCreated(View view, Bundle savedInstanceState) {
//         super.onViewCreated(view, savedInstanceState);
//         initialize();
//     }
// 
//     protected void initialize() {
//     }
// 
//     @Override
//     public void onFirstUserVisible() {
//         super.onFirstUserVisible();
//         setSupportActionBar();
//     }
// 
//     //布局ID
//     protected abstract
//     @LayoutRes
//     int getLayoutId();
// 
//     @Override
//     public void onUserVisible() {
//         super.onUserVisible();
//         setSupportActionBar();
//     }
// 
//     /**
//      * 设置toolbar
//      */
//     private void setSupportActionBar() {
//         ((AppCompatActivity) getActivity()).setSupportActionBar(mToolbar);
//         ((HomeActivity) getActivity()).addDrawerListener(mToolbar);
//     }
// }


// Path: app/src/main/java/com/github/cchao/touchnews/ui/adapter/NewsFragmentsPagerAdapter.java
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.github.cchao.touchnews.ui.fragment.base.BaseFragment;
import java.util.List;

package com.github.cchao.touchnews.ui.adapter;




/**
 * Created by cchao on 2016/3/30.
 * E-mail:   cchao1024@163.com
 * Description: 新闻频道 页面Adapter
 */
public class NewsFragmentsPagerAdapter extends FragmentPagerAdapter {
    private List<BaseFragment> mListFragments = null;
    private String[] mTitles = null;

    public NewsFragmentsPagerAdapter(FragmentManager fm, String[] titles, List<BaseFragment> fragments) {