![]() ![]() Public class RepositoryAdapter extends RecyclerView. My strategy is to create the ViewHolder first after we create the skeleton for our Adapter and then move on to filling the rest of the a required functions in the adapter. The ViewHolder calls findViewById to find and cache the views so that we don’t call findViewById for each data point. Now the views are provided to the RecyclerView in a ViewHolder. The adapter’s job is to provide RecyclerView with new views when needed and bind data. Creating a RecyclerView Adapter and ViewHolder
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |