I find PocketGopher has trouble handling large menus smoothly, for example this page with >1400 lines: gopher://sdf.org:70/1/aged-maps/
On my device (Nexus 6P, android 8.1.0) after the initial load there are intermittent freezes where I cannot scroll and menu text shrinks several times before finally settling (possibly the same issue as #4). This happens for about 30s before it feels stable.
After some experimenting I discovered the cause is related to TextView's autoresize feature. With the feature enabled TextView tries to grow/shrink itself so long lines fit without wrapping, for whatever reason it does not work well with many lines.
Disabling autosizing fixes both issues on my device with this change:
The downside is that menus are stuck with a fixed text size which may be suboptimal on some screens. Also some users may appreciate the ability to set their own text size preference.
In addition to disabling autosizing, maybe there can be a "Set font size" button via the drop-down menu which could display a NumberPicker in a dialog/popup to adjust text size. I would be willing to make a PR for this (or something like it).
Hello!
I find PocketGopher has trouble handling large menus smoothly, for example this page with >1400 lines:
gopher://sdf.org:70/1/aged-maps/
On my device (Nexus 6P, android 8.1.0) after the initial load there are intermittent freezes where I cannot scroll and menu text shrinks several times before finally settling (possibly the same issue as #4). This happens for about 30s before it feels stable.
After some experimenting I discovered the cause is related to TextView's autoresize feature. With the feature enabled TextView tries to grow/shrink itself so long lines fit without wrapping, for whatever reason it does not work well with many lines.
Disabling autosizing fixes both issues on my device with this change:
The downside is that menus are stuck with a fixed text size which may be suboptimal on some screens. Also some users may appreciate the ability to set their own text size preference.
In addition to disabling autosizing, maybe there can be a "Set font size" button via the drop-down menu which could display a NumberPicker in a dialog/popup to adjust text size. I would be willing to make a PR for this (or something like it).
Thanks for the great app btw!