Skip to Content
Android 9 Development Cookbook - Third Edition
book

Android 9 Development Cookbook - Third Edition

by Rick Boyer
October 2018
Intermediate to advanced
464 pages
15h 17m
English
Packt Publishing
Content preview from Android 9 Development Cookbook - Third Edition

How it works...

As mentioned in the Introduction to this recipe, multiple item selection is one of the most missed features of RecyclerView and the one that receives the most questions. As you can see from this example, even a basic implementation requires many steps but the end result can be the exact implementation required for your task. You won't be limited to an existing feature set since you'll be creating it yourself. 

This recipe combines several concepts learned from previous recipes, including the following:

  • RecyclerView
  • The RecyclerView adapter
  • The contextual menu
  • The action mode callback

To tie everything together, we created a custom interface so the adapter could notify when an item was selected. MainActivity receives the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Android Application Development Cookbook - Second Edition

Android Application Development Cookbook - Second Edition

Rick Boyer, Kyle Mew
Android High Performance Programming

Android High Performance Programming

Enrique López Mañas, Diego Grancini
Android Things Projects

Android Things Projects

Francesco Azzola

Publisher Resources

ISBN: 9781788991216Supplemental Content