There is a canvas
and As a beginner, I have learned about viewGroup
in android and how to add a view
or multiple views
in a viewGroup
using either xml
or programmatically using addView
. We can add as many view
we want to add and we can also increase the height
of the view
dynamically using layoutParams
. While we can use addView
or setLayoutParams
to increase the height of the canvas
as we add more pages
, why should we use recyclerView
?
From the UI
perspective, everything seems equal here whether we say increasing height
or adding view
or list of items
. Even though when we are increasing the height
, there is a separator between each addition. However, the separator is not a major concern here. Basically, based on numbers of pages
or items
or data
, we are increasing the height
of the canvas
view so that we can include and show all the data
. These numbers of pages
has been set to 14
currently but it can be increased without any limit and each canvas board
can contain an unpredictable amount of data - may be hundreds of dots, a combination of lines, shapes, text, images and so on - which is fair. We are not limiting user to draw only certain amount of things on individual canvas board
.