android - Set the textView visible to the top of the containing text (scrollable textView) -
sorry bad title, don't speak english. problem (i'm working on since 2 hours) detail want know how solve it, , in future. i've searched on stackoverflow , other websites, don't find solution problem, there : have textview, make scrollable using (second line) :
textviewdesc = (textview) findviewbyid(r.id.textviewdesc); textviewdesc.setmovementmethod(new scrollingmovementmethod()); and use these attributes of xml file :
android:scrollbars="vertical" android:maxlines="100" when push button on app, searches text internet , put textview. works well, "failure" textview starts not beginning of text, finish end (i don't see beginning, have scroll it). , think it's not obvious people using app has start scrolling top of textview before starting reading.
i hope understand problem, , me fix this. thank in advance
what textviewdesc.setscrolly(0) ?
also, i've noticed textview scrolling pretty unreliable. putting textview inside scrollview instead? (http://developer.android.com/reference/android/widget/scrollview.html)
Comments
Post a Comment