Skip to content

Instantly share code, notes, and snippets.


Joni Karppinen jonikarppinen

View GitHub Profile
jirivrany /
Created Jan 10, 2016
Example of undo action for Android RecyclerView onSwipe.
public class PhotoAdapter extends RecyclerView.Adapter<PhotoAdapter.PhotoViewHolder> implements View.OnClickListener {
private ArrayList<Photo> photos;
public ArrayList<Photo> photosToRemove;
private OnItemClickListener onItemClickListener;
private Context context;
public PhotoAdapter(Context context, ArrayList<Photo> photos, Map<Integer, String> authors, int colHeigth) {
staltz /
Last active Jun 24, 2022
The introduction to Reactive Programming you've been missing