I have a TextView which I will add various lines of text to. I have placed the TextView within a ScrollVi开发者_运维问答ew to allow USER scrolling of the TextView however I want the TextView when it is full of text to automatically scroll up when another line is added.
I cannot find any solutions to this. Ther must be a way of automatically scrolling a TextView vertically. Can anyone help me?
I'm not sure how to do it in a TextView but you can use a ListView with android:transcriptMode="alwaysScroll"
and android:stackFromBottom="true"
to get that desired behaviour. See this Google IO talk at around 32 min.
精彩评论