jahu00 / RikaiKyun2Research

Preproduction research for a new version of RikaiKyun
0 stars 0 forks source link

Scrolling through text #3

Open jahu00 opened 1 year ago

jahu00 commented 1 year ago

Ideally reader should be able to display text (preferably with headers) and images. Text files might be a few MB in length so having all the text in view all the time would probably be impossible. The text should be loaded on the fly and put inside the view. It either needs to be some sort of endless scroll or some paging system.

jahu00 commented 1 year ago

Handling touch gestures in MAUI is quite easy, though there are some quirks involved. Layout and View controls appear to only process those gestures when they are performed on its children. I can work around it by wrapping everything in a frame.

I will have to decide if I want to render all text and images using SKIA or to use separate MAUI controls. If I render everything, then I will end up with a monster control. If I use separate controls, it might be easier to handle touch gestures on individual controls, but coding text layout might be even more difficult (and I will have to do it either way).