Skip to main content

RecyclerView on Android

Recently I gave a 10 minute lightning talk at the Android Alliance meetup about RecyclerViews on Android. The talk was aimed at Android developers at all levels. I decided to talk about this since the recent Android Study Jam for beginners that I helped run did not touch upon this topic and almost all Android developers have to make use of this ViewGroup sooner or later.

Since the Recycler View offers 3 built in-layout managers, I built a sample that showed how to lay out views either using a LinearLayoutManager, GridLayoutManager and a StaggeredGridLayoutManager.


I also talked about how it makes sense to only use a RecyclerView if you have a large dataset of items. If you just want to show a grid of say 5 items, maybe a GridLayout is a much better option.

Code sample is available at RecyclerViewExample.

Slides are available at RecyclerViewSlides.

More information about RecyclerViews is available in the Android documentation.

Comments

Popular posts from this blog

Recap of Android Summit 2017

I recently attended and spoke at Android Summit , an Android conference organized by the folks at Capital One. Special shoutout to Jared A Sheehan, Michael Jones and the entire organizing committee for running a fabulous event which raised $6000 for Women who Code. All speakers received a Phillips Hue Starter Kit as a speaker gift which I've used to toggle and dim my living room lights via Amazon Echo. So much fun! I had a prior commitment and could only attend Day 1 but here are my highlights. Process & Workflow A common theme on Day 1 was process and workflow talks which tied in beautifully with Kelly Shuster 's keynote. Kelly is an excellent story teller. In her keynote, she connected a story of communication from her theatre background to how developers, designers and testers need to work together to reduce boiler plate conversations when designing and developing apps. I gave a similar talk earlier this year at  Chicago Roboto  with my co-worker and designer  J

Chicago Roboto 2018 Recap + First Keynote!

Chicago Roboto was back again this year as a single track conference and there were a lot of excellent talks.  Last year I gave a talk with my co-worker and product designer extraordinaire Jess Moon about design and development workflows and this year I was back again but as a Keynote speaker. Keynote Giving a keynote was a stretch goal I set for myself in 2018 and I managed to achieve it early thanks to the Chicago Roboto review committee. The topic I chose was being an Android Advocate who brings teams and communities together. I will be writing a follow up blog post about my keynote process soon but before that, a quick shout out to Corey Latislaw and my coworkers at Warner Bros. Digital Labs who took a look at my first and second drafts and listened to all my half-baked thoughts and ideas. Achievement unlocked 🎉🎉🎉 - Gave my first keynote @chicagoroboto #chicagoroboto Slides with resources available at https://t.co/OJVbZa3Akj — Yash Prabhu (@yashvprabhu)

How I prepared for my first big conference talk

Last Friday, I gave a talk at AnDevCon Boston. I had about 4 months to prepare since the conference's C all for Proposal(CFP) deadline was in March and the conference was in July. "Monetize Apps on the Play Store: Integrating in-app Billing in Your #Android App w/ @yashvprabhu at #AnDevCon http://t.co/Pw1ZKy5Fek — AnDevCon (@AnDevCon) June 30, 2015 I have broken down my entire process of giving a presentation - from writing an abstract to giving the final talk into the following steps: Choosing a conference and submitting a proposal Breaking down the topic into smaller components Giving my talk at a local meetup Prepping for the conference Prepping hours before the talk Choosing a conference and submitting a proposal The whole process of giving a talk started at the Write/Speak/Code conference which happened earlier this year in March. On Day 1 of the conference, I wrote down several topics that I have expertise in. I settled down