@@ -0,0 +1,917 @@
+package com.verybadalloc.designlib.adapters;%0A%0Aimport android.support.v4.app.Fragment;%0Aimport android.support.v4.app.FragmentManager;%0Aimport android.support.v4.app.FragmentPagerAdapter;%0A%0Aimport com.verybadalloc.designlib.views.BooksListFragmentBuilder;%0A%0A/**%0A * Created by aambri on 16-01-28.%0A */%0Apublic class TabsPagerAdapter extends FragmentPagerAdapter %7B%0A%0A    private static final String%5B%5D categories = new String%5B%5D%7B%22All%22, %22New Arrival%22, %22Novels%22, %22Non-fiction%22, %22Classics%22, %22Science-fiction%22%7D;%0A%0A    public TabsPagerAdapter(FragmentManager fm) %7B%0A        super(fm);%0A    %7D%0A%0A    @Override%0A    public Fragment getItem(int position) %7B%0A        return BooksListFragmentBuilder.newBooksListFragment(categories%5Bposition%5D);%0A    %7D%0A%0A    @Override%0A    public int getCount() %7B%0A        return categories.length;%0A    %7D%0A%0A    @Override%0A    public CharSequence getPageTitle(int position) %7B%0A        return categories%5Bposition%5D;%0A    %7D%0A%7D%0A

Add adapter used for tab layout