Skip to content

Instantly share code, notes, and snippets.

View Dillonb's full-sized avatar
👺
0x07

Dillon Beliveau Dillonb

👺
0x07
  • Seattle
  • 01:09 (UTC -07:00)
View GitHub Profile
@Dillonb
Dillonb / Readme.md
Created January 11, 2016 16:34 — forked from gabrielemariotti/Readme.md
A SimpleSectionedRecyclerViewAdapter: use this class to realize a simple sectioned `RecyclerView.Adapter`.

You can use this class to realize a simple sectioned RecyclerView.Adapter without changing your code.

The RecyclerView should use a LinearLayoutManager. You can use this code also with the TwoWayView with the ListLayoutManager (https://github.com/lucasr/twoway-view)

This is a porting of the class SimpleSectionedListAdapter provided by Google

Screen

Example:

<?php
// https://gist.github.com/Dillonb/30b6cec775efef69cb90
// Original credit to https://gist.github.com/pamelafox-coursera/5359246
class CalendarEvent {
/**
*
* The event ID
* @var string