// Path: sample/src/main/java/ru/noties/scrollable/sample/ViewTypeItem.java
// public class ViewTypeItem extends ViewType<String, ViewTypeItem.ItemHolder> {
// 
//     @Override
//     public ItemHolder createView(LayoutInflater inflater, ViewGroup parent) {
//         return new ItemHolder(inflater.inflate(R.layout.vt_item, parent, false));
//     }
// 
//     @Override
//     public void bindView(Context context, ItemHolder holder, String item, List<Object> payloads) {
//         holder.view.setText(item);
//     }
// 
//     public static class ItemHolder extends HolderSingle<TextView> {
//         ItemHolder(View itemView) {
//             super(itemView);
//         }
//     }
// }
// 
// Path: sample/src/main/java/ru/noties/scrollable/sample/ItemsGenerator.java
// public class ItemsGenerator {
// 
//     public static List<String> generate(int count) {
//         final List<String> list = new ArrayList<>(count);
//         for (int i = 0; i < count; i++) {
//             list.add("Item #" + i);
//         }
//         return list;
//     }
// 
//     private ItemsGenerator() {}
// }


import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
import ru.noties.scrollable.sample.R;
import ru.noties.scrollable.sample.ViewTypeItem;
import ru.noties.scrollable.sample.ItemsGenerator;
import ru.noties.vt.ViewTypesAdapter;
package ru.noties.scrollable.sample.pager.fragment;




public class FragmentPagerFragmentRecyclerView extends FragmentPagerFragment {

    private RecyclerView mRecyclerView;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle sis) {
        return inflater.inflate(R.layout.fragment_pager_recycler_view, parent, false);
    }

    @Override
    public void onViewCreated(View view, Bundle sis) {
        super.onViewCreated(view, sis);

        mRecyclerView = findView(R.id.recycler_view);
        mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
        mRecyclerView.setHasFixedSize(true);

        final ViewTypesAdapter<String> adapter = ViewTypesAdapter.builder(String.class)
// Path: sample/src/main/java/ru/noties/scrollable/sample/ViewTypeItem.java
// public class ViewTypeItem extends ViewType<String, ViewTypeItem.ItemHolder> {
// 
//     @Override
//     public ItemHolder createView(LayoutInflater inflater, ViewGroup parent) {
//         return new ItemHolder(inflater.inflate(R.layout.vt_item, parent, false));
//     }
// 
//     @Override
//     public void bindView(Context context, ItemHolder holder, String item, List<Object> payloads) {
//         holder.view.setText(item);
//     }
// 
//     public static class ItemHolder extends HolderSingle<TextView> {
//         ItemHolder(View itemView) {
//             super(itemView);
//         }
//     }
// }
// 
// Path: sample/src/main/java/ru/noties/scrollable/sample/ItemsGenerator.java
// public class ItemsGenerator {
// 
//     public static List<String> generate(int count) {
//         final List<String> list = new ArrayList<>(count);
//         for (int i = 0; i < count; i++) {
//             list.add("Item #" + i);
//         }
//         return list;
//     }
// 
//     private ItemsGenerator() {}
// }


// Path: sample/src/main/java/ru/noties/scrollable/sample/pager/fragment/FragmentPagerFragmentRecyclerView.java
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
import ru.noties.scrollable.sample.R;
import ru.noties.scrollable.sample.ViewTypeItem;
import ru.noties.scrollable.sample.ItemsGenerator;
import ru.noties.vt.ViewTypesAdapter;

package ru.noties.scrollable.sample.pager.fragment;




public class FragmentPagerFragmentRecyclerView extends FragmentPagerFragment {

    private RecyclerView mRecyclerView;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle sis) {
        return inflater.inflate(R.layout.fragment_pager_recycler_view, parent, false);
    }

    @Override
    public void onViewCreated(View view, Bundle sis) {
        super.onViewCreated(view, sis);

        mRecyclerView = findView(R.id.recycler_view);
        mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
        mRecyclerView.setHasFixedSize(true);

        final ViewTypesAdapter<String> adapter = ViewTypesAdapter.builder(String.class)
                .register(String.class, new ViewTypeItem())