Code example for ResourceCursorAdapter

    private static int LAYOUT = R.layout.list_item_sleep_history;
    private ViewGroup parent;
    public SleepHistoryCursorAdapter(final Context context, final Cursor cursor) {
        super(context, LAYOUT, cursor, true);
    public void bindView(final View view, final Context context,
            final Cursor cursor) {
        final SleepSession session = new SleepSession(cursor);
        ((TextView) view.findViewById(
        ((TextView) view.findViewById(
                .getString(R.string.recording_time, session
        ((TextView) view.findViewById(
Connect your IDE to all the code out there  Get Codota for Java