ReadOnly TextView's broken scrolling after version update
See original GitHub issueDescribe the bug
Another breaking change I came across when upgrading from v1.9.0 to 1.12.1, is that I cannot scroll my read-only TextView
correctly any more.
To Reproduce Steps to reproduce the behavior:
- Add a quite short
TextView
, so that you don’t have to insert a lot of text to reproduce the error. - Set it’s
ReadOnly
property totrue
and itsText
property to several lines, such that they exceed its height. - Scroll down to the end and then try to scroll up again, using the keyboard’s up and down arrows.
- Notice that you cannot scroll back to the top. If you type a character or use the mouse wheel, it’s as if it gets unstuck for a while and then you might be able to scroll to the top.
- Also, notice that it’s sluggish, the cursor might move a little right or left when changing lines and get stuck “randomly”.
Expected behavior To scroll seamlessly, like I used to.
Screenshots Here, I demonstrate the different behavior between the two versions. The read-only is the bottom one, in the “output” frame.
Desktop (please complete the following information):
- OS: Windows
- Version 10
Issue Analytics
- State:
- Created 4 months ago
- Comments:5
Top Results From Across the Web
auto-scrolling TextView in android to bring text into view
My problem with this approach is that it looks really odd before the TextView fills up, since what text is present all sits...
Read more >TextView | Android Developers
Quickly bring your app to life with less code, using a modern declarative approach to UI, and the simplicity of Kotlin. ... Start...
Read more >Setting resizeToAvoidBottomPadding: false on a Scaffold ...
If I set resizeToAvoidBottomPadding: false on my Scaffold no Textfield is scrolled up anymore and I can't even scroll my content up manually....
Read more >Android Autosizing TextViews, their pitfalls, and what to do ...
This works fine but unfortunately might lead to performance degradation on lists during scrolling, for instance, due to the extra layout ...
Read more >The item inside RecyclerView can't be clicked right after scrolling
But I found that my RecyclerView items is not clickable right after the scrolling. If you wait for a second, it will work....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for reporting this. Really appreciate you providing repro instructions.
If someone can do a PR for this into
develop
I’ll grab it and release v1.13.2 asap!