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

Running our first GDG Philly Android Study Jam

Recently I joined the fantastic team of developers who run Google Developers Group Philly (GDG Philly), an umbrella organization that includes Android Alliance Philly and GoLang Philly meetup groups. Google Developer Groups or GDGs are community-run groups that are for developers who are interested in learning Google technologies.  


The first thing we organized in 2016 was Google Developers Groups Study Jams, a free series of global, community-run, in-person study groups. We ran an Android Study Jam for 5 weeks which used Udacity's Android Beginners curriculum for newbies as well as experienced developers.


Since GDG Philly focuses mostly on Android & GoLang topics, we didn't have to go too far to find facilitators. Three of us organizers - Arpit, Corey & I are Android developers so we split the teaching part into 3 sessions that each of us would lead. The Study Jam ran for 5 weeks with a two week break between Session 4 and Session 5 so that attendees could focus on work…

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) April 12, 2018 The reco…

GDG Summit and Google I/O 2016 Recap

Last week I was in San Francisco and Mountain View for two conferences - Global Google Developer Groups(GDG) Summit & Google I/O 2016. 
Day 0: GDG Summit The annual global GDG Summit is held every year before Google I/O. GDG is a community run group for Google technology enthusiasts. You can learn more about the Philly group here. The global summit  is where GDG organizers from all over the world who are attending Google I/O gather and catch up with other organizers. Some of the fun things we did were the sharing table before the summit and a Firebase, lego and Arduino workshop at the summit. Sharing is caring. Awesome cultural sharing table at the pre- #io16 GDG Dinner. pic.twitter.com/9uGc8nQJd5 — Zarah Dominguez (@zarahjutz) May 17, 2016

Firebase & Lego Arduino workshop #gdgsummitpic.twitter.com/biqlog3Tn4 — Yash Prabhu (@yashvprabhu) May 17, 2016
Night 0: Women Techmakers Dinner
The day before Google I/O, we had a dinner hosted by Women Techmakers which helps women in tech…