// Path: app/src/main/java/com/idisfkj/hightcopywx/main/FragmentFactory.java
// public class FragmentFactory {
//     private Fragment mFragment;
//     private int mSize;
//     public FragmentFactory(int size) {
//         mSize = size;
//     }
// 
//     public int getSize(){
//         return mSize;
//     }
// 
//     public Fragment createFragment(int position){
//         switch (position){
//             case 0:
//                 mFragment = new WXFragment();
//                 break;
//             case 1:
//                 mFragment = new ContactFragment();
//                 break;
//             case 2:
//                 mFragment = new FindFragment();
//                 break;
//             case 3:
//                 mFragment = new MeFragment();
//                 break;
//         }
//         return mFragment;
//     }
// }


import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import com.idisfkj.hightcopywx.main.FragmentFactory;
package com.idisfkj.hightcopywx.adapter;



/**
 * 主界面Fragment适配器
 * Created by idisfkj on 16/4/19.
 * Email : idisfkj@qq.com.
 */
public class FragmentAdapter extends FragmentStatePagerAdapter{
    private FragmentFactory mFragmentFactory;
    public FragmentAdapter(FragmentManager fm) {
        super(fm);
// Path: app/src/main/java/com/idisfkj/hightcopywx/main/FragmentFactory.java
// public class FragmentFactory {
//     private Fragment mFragment;
//     private int mSize;
//     public FragmentFactory(int size) {
//         mSize = size;
//     }
// 
//     public int getSize(){
//         return mSize;
//     }
// 
//     public Fragment createFragment(int position){
//         switch (position){
//             case 0:
//                 mFragment = new WXFragment();
//                 break;
//             case 1:
//                 mFragment = new ContactFragment();
//                 break;
//             case 2:
//                 mFragment = new FindFragment();
//                 break;
//             case 3:
//                 mFragment = new MeFragment();
//                 break;
//         }
//         return mFragment;
//     }
// }


// Path: app/src/main/java/com/idisfkj/hightcopywx/adapter/FragmentAdapter.java
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import com.idisfkj.hightcopywx.main.FragmentFactory;

package com.idisfkj.hightcopywx.adapter;



/**
 * 主界面Fragment适配器
 * Created by idisfkj on 16/4/19.
 * Email : idisfkj@qq.com.
 */
public class FragmentAdapter extends FragmentStatePagerAdapter{
    private FragmentFactory mFragmentFactory;
    public FragmentAdapter(FragmentManager fm) {
        super(fm);
        mFragmentFactory = new FragmentFactory(4);