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

2017: Year In Review

We're a month into 2018 and I already have a lot going on for the next couple of months. But before things are in full swing, I wanted to take a step back and review the past year. Photo by Miesha Moriniere from Pexels In numbers Wrote 2 blog posts  Won 2 awards  Attended 5 conferences  Spoke at 4 conferences Attended 14 meetups Spoke at 4 meetups Read 12 books  A lot of firsts! Speaking This was the first time I gave 3 completely different talks on different topics like design-developer collaboration, public speaking and leadership, and mastering Android's app resources. It was also the first time I gave a talk with a co-presenter at a conference ( Chicago Roboto - Design Develop Deploy ) Community Organized and helped run the first Android meets iOS meetup at Philly Tech Week. Learning new things This year I immersed myself in Kotlin via Kotlin Koans, Kotlin in Action book and Koltin programming challenges. It took me a while to write my first PR

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)