// Path: app/src/main/java/com/ximsfei/skindemo/ui/adapter/TabFragmentPagerAdapter.java
// public class TabFragmentPagerAdapter extends FragmentPagerAdapter {
// 
//     private List<Fragment> mFragments;
//     private List<String> mTitles;
// 
//     public TabFragmentPagerAdapter(FragmentManager fragmentManager, List<Fragment> fragments) {
//         super(fragmentManager);
//         mFragments = fragments;
//     }
// 
//     public TabFragmentPagerAdapter(FragmentManager fragmentManager, List<Fragment> fragments, List<String> titles) {
//         super(fragmentManager);
//         mFragments = fragments;
//         mTitles = titles;
//     }
// 
//     @Override
//     public Fragment getItem(int position) {
//         return mFragments.get(position);
//     }
// 
//     @Override
//     public int getCount() {
//         return mFragments.size();
//     }
// 
//     @Override
//     public CharSequence getPageTitle(int position) {
//         return mTitles != null ? mTitles.get(position) : "";
//     }
// }
// 
// Path: app/src/main/java/com/ximsfei/skindemo/ui/base/BaseFragment.java
// public abstract class BaseFragment<VDB extends ViewDataBinding> extends Fragment {
//     protected VDB mDataBinding;
// 
//     @LayoutRes
//     protected abstract int getLayoutId();
// 
//     @Override
//     public void onActivityCreated(@Nullable Bundle savedInstanceState) {
//         super.onActivityCreated(savedInstanceState);
//         loadData();
//     }
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         View view = inflater.inflate(getLayoutId(), null);
//         mDataBinding = DataBindingUtil.bind(view);
//         onCreateVew(inflater, savedInstanceState);
//         return view;
//     }
// 
//     protected void onCreateVew(LayoutInflater inflater, Bundle savedInstanceState) {
// 
//     }
// 
//     protected abstract void loadData();
// }
// 
// Path: app/src/main/java/com/ximsfei/skindemo/ui/friends/ContactsFragment.java
// public class ContactsFragment extends BaseFragment {
//     @Override
//     protected int getLayoutId() {
//         return R.layout.fragment_contacts;
//     }
// 
//     @Override
//     protected void loadData() {
// 
//     }
// }
// 
// Path: app/src/main/java/com/ximsfei/skindemo/ui/friends/FeedsFragment.java
// public class FeedsFragment extends BaseFragment {
//     @Override
//     protected int getLayoutId() {
//         return R.layout.fragment_feeds;
//     }
// 
//     @Override
//     protected void loadData() {
// 
//     }
// }
// 
// Path: app/src/main/java/com/ximsfei/skindemo/ui/friends/NearbyFragment.java
// public class NearbyFragment extends BaseFragment {
//     @Override
//     protected int getLayoutId() {
//         return R.layout.fragment_nearby;
//     }
// 
//     @Override
//     protected void loadData() {
// 
//     }
// }


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import com.ximsfei.skindemo.R;
import com.ximsfei.skindemo.databinding.FragmentFriendsBinding;
import com.ximsfei.skindemo.ui.adapter.TabFragmentPagerAdapter;
import com.ximsfei.skindemo.ui.base.BaseFragment;
import com.ximsfei.skindemo.ui.friends.ContactsFragment;
import com.ximsfei.skindemo.ui.friends.FeedsFragment;
import com.ximsfei.skindemo.ui.friends.NearbyFragment;
import java.util.ArrayList;
import java.util.List;
package com.ximsfei.skindemo.ui;




/**
 * Created by ximsfei on 17-1-7.
 */

public class FriendsFragment extends BaseFragment<FragmentFriendsBinding> {
    private TabFragmentPagerAdapter mTabFragmentPagerAdapter;

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

    @Override
    protected void onCreateVew(LayoutInflater inflater, Bundle savedInstanceState) {
        super.onCreateVew(inflater, savedInstanceState);
        configFragments();
    }

    @Override
    protected void loadData() {

    }

    private void configFragments() {
        List<Fragment> list = new ArrayList<>();
        list.add(new FeedsFragment());
        list.add(new NearbyFragment());
        list.add(new ContactsFragment());
        List<String> listTitle = new ArrayList<>();
        listTitle.add("动态");
// Path: app/src/main/java/com/ximsfei/skindemo/ui/adapter/TabFragmentPagerAdapter.java
// public class TabFragmentPagerAdapter extends FragmentPagerAdapter {
// 
//     private List<Fragment> mFragments;
//     private List<String> mTitles;
// 
//     public TabFragmentPagerAdapter(FragmentManager fragmentManager, List<Fragment> fragments) {
//         super(fragmentManager);
//         mFragments = fragments;
//     }
// 
//     public TabFragmentPagerAdapter(FragmentManager fragmentManager, List<Fragment> fragments, List<String> titles) {
//         super(fragmentManager);
//         mFragments = fragments;
//         mTitles = titles;
//     }
// 
//     @Override
//     public Fragment getItem(int position) {
//         return mFragments.get(position);
//     }
// 
//     @Override
//     public int getCount() {
//         return mFragments.size();
//     }
// 
//     @Override
//     public CharSequence getPageTitle(int position) {
//         return mTitles != null ? mTitles.get(position) : "";
//     }
// }
// 
// Path: app/src/main/java/com/ximsfei/skindemo/ui/base/BaseFragment.java
// public abstract class BaseFragment<VDB extends ViewDataBinding> extends Fragment {
//     protected VDB mDataBinding;
// 
//     @LayoutRes
//     protected abstract int getLayoutId();
// 
//     @Override
//     public void onActivityCreated(@Nullable Bundle savedInstanceState) {
//         super.onActivityCreated(savedInstanceState);
//         loadData();
//     }
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         View view = inflater.inflate(getLayoutId(), null);
//         mDataBinding = DataBindingUtil.bind(view);
//         onCreateVew(inflater, savedInstanceState);
//         return view;
//     }
// 
//     protected void onCreateVew(LayoutInflater inflater, Bundle savedInstanceState) {
// 
//     }
// 
//     protected abstract void loadData();
// }
// 
// Path: app/src/main/java/com/ximsfei/skindemo/ui/friends/ContactsFragment.java
// public class ContactsFragment extends BaseFragment {
//     @Override
//     protected int getLayoutId() {
//         return R.layout.fragment_contacts;
//     }
// 
//     @Override
//     protected void loadData() {
// 
//     }
// }
// 
// Path: app/src/main/java/com/ximsfei/skindemo/ui/friends/FeedsFragment.java
// public class FeedsFragment extends BaseFragment {
//     @Override
//     protected int getLayoutId() {
//         return R.layout.fragment_feeds;
//     }
// 
//     @Override
//     protected void loadData() {
// 
//     }
// }
// 
// Path: app/src/main/java/com/ximsfei/skindemo/ui/friends/NearbyFragment.java
// public class NearbyFragment extends BaseFragment {
//     @Override
//     protected int getLayoutId() {
//         return R.layout.fragment_nearby;
//     }
// 
//     @Override
//     protected void loadData() {
// 
//     }
// }


// Path: app/src/main/java/com/ximsfei/skindemo/ui/FriendsFragment.java
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import com.ximsfei.skindemo.R;
import com.ximsfei.skindemo.databinding.FragmentFriendsBinding;
import com.ximsfei.skindemo.ui.adapter.TabFragmentPagerAdapter;
import com.ximsfei.skindemo.ui.base.BaseFragment;
import com.ximsfei.skindemo.ui.friends.ContactsFragment;
import com.ximsfei.skindemo.ui.friends.FeedsFragment;
import com.ximsfei.skindemo.ui.friends.NearbyFragment;
import java.util.ArrayList;
import java.util.List;

package com.ximsfei.skindemo.ui;




/**
 * Created by ximsfei on 17-1-7.
 */

public class FriendsFragment extends BaseFragment<FragmentFriendsBinding> {
    private TabFragmentPagerAdapter mTabFragmentPagerAdapter;

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

    @Override
    protected void onCreateVew(LayoutInflater inflater, Bundle savedInstanceState) {
        super.onCreateVew(inflater, savedInstanceState);
        configFragments();
    }

    @Override
    protected void loadData() {

    }

    private void configFragments() {
        List<Fragment> list = new ArrayList<>();
        list.add(new FeedsFragment());
        list.add(new NearbyFragment());
        list.add(new ContactsFragment());
        List<String> listTitle = new ArrayList<>();
        listTitle.add("动态");
        listTitle.add("附近");