Deep Dive To RecyclerView And Its Components
We all have heard about the RecyclerView and always explain it as an advanced form of ListView. No doubt, that the RecyclerView is an advanced and flexible form of ListView. But the question arises, Is that really so? Do we actually explain it correctly? The straight answer for this is No. As the name suggests, RecyclerView recycles its view for displaying a list. This means the count of views it creates is in such a manner that it will cover the screen and even have a few extra views to display. But further on it will just reuse the scrolled off the view to display the upcoming data on it. For Example, if the list size is 100 and at a time only 4 cards are visible on the screen. So RecyclerView will generate 5 or 6 cards only and when the 6th card would be scrolled above then after that the first card would be recycled to display the data. Above mentioned was the overview of RecyclerView e.i. What is RecyclerView? Now, let's have a look at its components. Components of RecyclerVie...