Skip to content

Instantly share code, notes, and snippets.

View jannisveerkamp's full-sized avatar

Jannis Veerkamp jannisveerkamp

View GitHub Profile
@jannisveerkamp
jannisveerkamp / configuration_change_testing
Created September 9, 2016 10:12
Easy Configuration Change testing
Simply change the with a slightly different resolution:
adb shell wm size {width}x{height}
Example:
adb shell wm size 1440x2559
View current settings:
adb shell wm size
@jannisveerkamp
jannisveerkamp / CursorAdapter
Created May 5, 2015 16:18
Simple CursorAdapter for RecyclerView
import android.database.Cursor;
import android.support.v7.widget.RecyclerView;
/**
* @author Jannis Veerkamp
* @since 05.05.15.
*/
public abstract class CursorAdapter<VH extends RecyclerView.ViewHolder>
extends RecyclerView.Adapter<VH> {