Simple Recyclerview with Cardview in Android Studio 4.0

Опубликовано: 17 Июнь 2020
на канале: Android Development Tutorials
169
1

A flexible view for providing a limited window into a large data set.

Glossary of terms:
Adapter: A subclass of Adapter responsible for providing views that represent items in a data set.
Position: The position of a data item within an Adapter.
Index: The index of an attached child view as used in a call to ViewGroup#getChildAt. Contrast with Position.
Binding: The process of preparing a child view to display data corresponding to a position within the adapter.
Recycle (view): A view previously used to display data for a specific adapter position may be placed in a cache for later reuse to display the same type of data again later. This can drastically improve performance by skipping initial layout inflation or construction.
Scrap (view): A child view that has entered into a temporarily detached state during layout. Scrap views may be reused without becoming fully detached from the parent RecyclerView, either unmodified if no rebinding is required or modified by the adapter if the view was considered dirty.
Dirty (view): A child view that must be rebound by the adapter before being displayed.


recyclerview dependency-

implementation 'androidx.recyclerview:recyclerview:1.1.0'


cardview dependency-

implementation 'androidx.cardview:cardview:1.0.0'


Смотрите видео Simple Recyclerview with Cardview in Android Studio 4.0 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Android Development Tutorials 17 Июнь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 16 раз и оно понравилось людям.