It is necessary to make a schedule that is in the picture (BarChart). It is recommended to use View as columns, and ScrollView as a container. The number of columns is approximately 20,000.
Cannot use different libraries. (Therefore, to suggest using a ready-made solution from a library does not roll). RecyclerView does not offer.
The graph should horizontally, correctly scroll and not slow down, therefore, there should not be a memory leak, which means that it is necessary to use reuse of View-elements in the container.
I used HorizontalScrollView as a container. And now the question. How to make reuse so that there is no leakage? Since HorizontalScrollView contains only one child (used LinearLayout), adding 20000 views to layout is a problem. So it is not yet possible to use an adapter for scrollview or linearlayout, so that you can use reuse of getView, as in the listView. What do i do? Can anyone help? If possible, preferably with an example.
