Skip to content

Instantly share code, notes, and snippets.

Avatar

Joni Karppinen jonikarppinen

View GitHub Profile
@jirivrany
jirivrany / PhotoAdapter.java
Created Jan 10, 2016
Example of undo action for Android RecyclerView onSwipe.
View PhotoAdapter.java
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
staltz / introrx.md
Last active Jun 24, 2022
The introduction to Reactive Programming you've been missing
View introrx.md