Hi Sarabjeet, thanks for the question.
That might work in simple UI designs like this one, but it's easy to imagine a design where we need to show and hide views that aren't located in the same part of the screen. Also, if you have animations associated with your RecyclerView (say, if you are using ListAdapter) then that might also lead to some undesired behavior.