Open ooker777 opened 2 years ago
It should be possible. Currently the markdown gets rendered into an image with the same size in pixels as the widget, and only this image gets displayed.
If I find a way to calculate how tall this image should be to fit the entire document, then it should be possible to make the widget scrollable.
+1 Would be a great feature
quick math here: android default line height is 19sp (scalable pixels), so count "\n" and line wraps and multiply by 19sp for image height
My newest version of the pull request can scroll the content. It does this by dividing a larger Bitmap into stripes serving as items for a List View.
Disadvantage: my PR does not let any stone on the other. Either you use this or you must take the burden of transferring selected parts of the functionality.
Maybe you can refer to this project, https://github.com/Irony95/ObsidianAndroidWidget, this widget can scroll down to show the text.
Is it possible to do so?