Skip to content

Instantly share code, notes, and snippets.

View iTwenty's full-sized avatar
:octocat:

Jaydeep Joshi iTwenty

:octocat:
View GitHub Profile
@iTwenty
iTwenty / CursorPagerAdapter
Last active August 29, 2015 14:14
CursorPagerAdapter that doesn't need projection. Added changeCursor method that closes old cursor after swapping
package com.t3methods.happysmiles.app.ui.adapters;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
public class CursorPagerAdapter<F extends Fragment> extends FragmentStatePagerAdapter
{