Submitted by Lisa Zeitouni (@lisawray) on Thursday, 16 June 2016
Section: Full talk (40 minutes) Technical level: Intermediate Status: Cancelled
This talk will cover how to madly customize (almost) everything in a RecyclerView. Today’s apps aren’t simple lists and grids. They have complex, hierarchical content and move, interact, and flow with the user and their device. The layout-dp folder is dead; long live the custom adapter! We’ll talk about adapter, ItemDecorators, ItemTouchHelpers, ItemAnimators, SpanSizeLookups, and everything short of making your own LayoutManager.
We’ll make apps:
RESPONSIVE: Flow layouts dynamically from a single column on phone to grids and columns on tablets, even if you have multiple sections or view types.
DYNAMIC: Let your lists move! Let users expand and collapse content and insert asynchronously from the network, all with free predictive animations. We’ll explore an approach and (soon-to-be-released) library from Genius which makes fine-grained updates in a RecyclerView easy.
SMOOTH: Setting layout backgrounds is so 2000 and late. We’ll explore ItemDecorators from the simple to the complex – decorating views with backgrounds, separators, and indents depending on their context (like sections with headers, groups with different “backgrounds”, mixed rows and grids!)
INTERACTIVE: Allow any part of your content to be rearranged or swipe-to-delete.
All this, and avoid overdraw too!
Lisa Wray is the Android developer at Genius, the world’s largest repository of musical knowledge. Previously, she was a developer advocate for Android and wearables at Google, and a mobile developer at the New York Times. She is an Android GDE and has a B.S. in Computer Science and Music from M.I.T.