// Path: library/src/main/java/cn/droidlover/xdroid/base/SimpleRecBindingViewHolder.java
// public class SimpleRecBindingViewHolder<V extends ViewDataBinding> extends RecyclerView.ViewHolder {
//     private V binding;
// 
//     public SimpleRecBindingViewHolder(V binding) {
//         super(binding.getRoot());
//         this.binding = binding;
//     }
// 
//     public SimpleRecBindingViewHolder(View itemView) {
//         super(itemView);
//         this.binding = DataBindingUtil.bind(itemView);
//     }
// 
//     public V getBinding() {
//         return binding;
//     }
// }
// 
// Path: app/src/main/java/cn/droidlover/xdroid/demo/adapter/GirlAdapter.java
// public class GirlAdapter extends SimpleRecAdapter<GankResults.Item, SimpleRecBindingViewHolder<AdapterGirlBinding>> {
// 
// 
//     public GirlAdapter(Context context) {
//         super(context);
//     }
// 
//     @Override
//     public SimpleRecBindingViewHolder newViewHolder(View itemView) {
//         return new SimpleRecBindingViewHolder(itemView);
//     }
// 
//     @Override
//     public int getLayoutId() {
//         return R.layout.adapter_girl;
//     }
// 
//     @Override
//     public void onBindViewHolder(SimpleRecBindingViewHolder<AdapterGirlBinding> holder, int position) {
//         GankResults.Item item = data.get(position);
//         ILFactory.getLoader().loadNet(holder.getBinding().ivGirl, item.getUrl(), null);
//         holder.itemView.setOnClickListener(new View.OnClickListener() {
//             @Override
//             public void onClick(View v) {
//                 if (getSimpleItemClick() != null) {
// 
//                 }
//             }
//         });
//     }
// 
// }


import cn.droidlover.xdroid.base.SimpleRecBindingViewHolder;
import cn.droidlover.xdroid.demo.adapter.GirlAdapter;
import cn.droidlover.xdroid.demo.databinding.AdapterGirlBinding;
import cn.droidlover.xdroid.demo.model.GankResults;
import cn.droidlover.xdroidbase.base.SimpleItemCallback;
import cn.droidlover.xdroidbase.base.SimpleRecAdapter;
import cn.droidlover.xrecyclerview.RecyclerItemCallback;
import cn.droidlover.xrecyclerview.XRecyclerView;
package cn.droidlover.xdroid.demo.ui;



/**
 * Created by wanglei on 2016/12/10.
 */

public class GirlFragment extends BasePagerFragment {

    GirlAdapter adapter;

    @Override
    public SimpleRecAdapter getAdapter() {
        if (adapter == null) {
            adapter = new GirlAdapter(context);
            adapter.setItemClick(new SimpleItemCallback<GankResults.Item,
                    SimpleRecBindingViewHolder<AdapterGirlBinding>>() {

                @Override
                public void onItemClick(int position, GankResults.Item model, int tag,
// Path: library/src/main/java/cn/droidlover/xdroid/base/SimpleRecBindingViewHolder.java
// public class SimpleRecBindingViewHolder<V extends ViewDataBinding> extends RecyclerView.ViewHolder {
//     private V binding;
// 
//     public SimpleRecBindingViewHolder(V binding) {
//         super(binding.getRoot());
//         this.binding = binding;
//     }
// 
//     public SimpleRecBindingViewHolder(View itemView) {
//         super(itemView);
//         this.binding = DataBindingUtil.bind(itemView);
//     }
// 
//     public V getBinding() {
//         return binding;
//     }
// }
// 
// Path: app/src/main/java/cn/droidlover/xdroid/demo/adapter/GirlAdapter.java
// public class GirlAdapter extends SimpleRecAdapter<GankResults.Item, SimpleRecBindingViewHolder<AdapterGirlBinding>> {
// 
// 
//     public GirlAdapter(Context context) {
//         super(context);
//     }
// 
//     @Override
//     public SimpleRecBindingViewHolder newViewHolder(View itemView) {
//         return new SimpleRecBindingViewHolder(itemView);
//     }
// 
//     @Override
//     public int getLayoutId() {
//         return R.layout.adapter_girl;
//     }
// 
//     @Override
//     public void onBindViewHolder(SimpleRecBindingViewHolder<AdapterGirlBinding> holder, int position) {
//         GankResults.Item item = data.get(position);
//         ILFactory.getLoader().loadNet(holder.getBinding().ivGirl, item.getUrl(), null);
//         holder.itemView.setOnClickListener(new View.OnClickListener() {
//             @Override
//             public void onClick(View v) {
//                 if (getSimpleItemClick() != null) {
// 
//                 }
//             }
//         });
//     }
// 
// }


// Path: app/src/main/java/cn/droidlover/xdroid/demo/ui/GirlFragment.java
import cn.droidlover.xdroid.base.SimpleRecBindingViewHolder;
import cn.droidlover.xdroid.demo.adapter.GirlAdapter;
import cn.droidlover.xdroid.demo.databinding.AdapterGirlBinding;
import cn.droidlover.xdroid.demo.model.GankResults;
import cn.droidlover.xdroidbase.base.SimpleItemCallback;
import cn.droidlover.xdroidbase.base.SimpleRecAdapter;
import cn.droidlover.xrecyclerview.RecyclerItemCallback;
import cn.droidlover.xrecyclerview.XRecyclerView;

package cn.droidlover.xdroid.demo.ui;



/**
 * Created by wanglei on 2016/12/10.
 */

public class GirlFragment extends BasePagerFragment {

    GirlAdapter adapter;

    @Override
    public SimpleRecAdapter getAdapter() {
        if (adapter == null) {
            adapter = new GirlAdapter(context);
            adapter.setItemClick(new SimpleItemCallback<GankResults.Item,
                    SimpleRecBindingViewHolder<AdapterGirlBinding>>() {

                @Override
                public void onItemClick(int position, GankResults.Item model, int tag,
                                        SimpleRecBindingViewHolder<AdapterGirlBinding> holder) {