Forum Archive

Scroll to the end of a textview

manuguerra

I have not been able to find this information, sorry if it has already been answered.
Is there a way to programmatically scroll at the end of a textview? I know how to do that for a webview, but have no clue for a textview.
Thanks

TutorialDoctor

How do you do it for a webview?

manuguerra

If "html" is the html code to show:

htmlshow='<body onload="window.scrollTo(0, document.body.scrollHeight);">'+html+'</body>'
v['webview1'].load_html(htmlshow)