The RecyclerView is a newer Android ViewGroup object meant to render any adapter-based View. Required Readingīegin by reading CodePath's article Using the Recycler View. Because the objects we are passing around and parsing into custom layouts are about to get more complex, we will spend some time learning about a powerful new tool to process information into a repeating layout: A RecyclerView. Often though, we'll want to display more than just a single string, and we'll want to use our own layout. We've altered those ArrayAdapters to be able to pass additional data, and we have made a simple custom adapter to work with a simple layout. So far, we only used Android's built-in ArrayAdapters to display lists of information in an activity. If you experience errors after adding the RecyclerView library, see the Addressing Version Incompatibility section at the end of this lesson. Note: In some cases, adding the RecyclerView dependency library can lead to version incompatibility errors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |