Skip to content

Instantly share code, notes, and snippets.

@snehazanzane
snehazanzane / RecycledPagerAdapter.java
Created May 7, 2018
ViewPager using ViewHolder like RecyclerView : Following code is use for create ViewHolder of ViewPager with Multiple ViewType
View RecycledPagerAdapter.java
import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;
import java.util.LinkedList;
import java.util.Queue;
public abstract class RecycledPagerAdapter<VH extends RecycledPagerAdapter.ViewHolder> extends PagerAdapter {
@snehazanzane
snehazanzane / RecycledPagerAdapter.java
Created May 7, 2018
ViewPager using ViewHolder like RecyclerView : Following code is use for create ViewHolder of ViewPager with Multiple ViewType
View RecycledPagerAdapter.java
import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;
import java.util.LinkedList;
import java.util.Queue;
public abstract class RecycledPagerAdapter<VH extends RecycledPagerAdapter.ViewHolder> extends PagerAdapter {