I am trying to develop an app (for bell-ringers) that requires a vertical scrollable display of rows of characters, lines. etc. The rows are only 12 characters wide, but there may be thousands of rows. The approach I would like to take is to draw all the rows onto the panel/canvas of a ScrollView in one go, having made the panel height sufficient to accommodate the whole thing. This works for a limited number of rows but, depending on which device I use as a test bed, soon reach a limit, with a java error message such as java.lang.RuntimeException: Canvas: trying to draw too large(111804480bytes) bitmap. (This is on a device with a screen width of 720 pixels, trying to draw 1300 rows, each just under 30 pixels high.)
I have tried drawing a subset of the rows onto a smaller canvas/panel, and redrawing as the scroll reaches its limits. I've managed to get it to work but the action is rather clunky, especially when scrolling toward the top.
I have seen the HugeImageView post at https://www.b4x.com/android/forum/threads/b4x-hugeimageview-show-very-large-images.132905/ This looks like a solution, but, as a hobbyist coder, I don't understand it!
I need help with understanding the principle behind HugeImageView. I only need vertical scrolling. I don't need pinch/zoom. I only need Android.
It would also be helpful to know how to interrogate the device to see how big a canvas it can accommodate so that I could adapt the size.
I have tried drawing a subset of the rows onto a smaller canvas/panel, and redrawing as the scroll reaches its limits. I've managed to get it to work but the action is rather clunky, especially when scrolling toward the top.
I have seen the HugeImageView post at https://www.b4x.com/android/forum/threads/b4x-hugeimageview-show-very-large-images.132905/ This looks like a solution, but, as a hobbyist coder, I don't understand it!
I need help with understanding the principle behind HugeImageView. I only need vertical scrolling. I don't need pinch/zoom. I only need Android.
It would also be helpful to know how to interrogate the device to see how big a canvas it can accommodate so that I could adapt the size.