Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のページはスクロール可能なTextViewをロードします。残念ながら、ビューに新しいテキストをロードすると位置が固定されているように見えるため、テキストが画面外に表示されるか、完全に非表示になります。現在「表示されている」テキストを一番上にリセットする方法はありますか?
TextView には View から継承されたメソッドがあり、これを使用できます。scrollTo(x,y)
scrollTo(x,y)
簡単に言えば:
myTextView.scrollTo(0,0)