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.
ScrollView FOCUS_DOWN を試しましたが、一番下までスクロールせず、一番下までスクロールします。LinearLayout 要素を追加した後に行う必要があります。
私のコード:
LinearLayoutView.addView(txtView); scroll.addView(LinearLayoutView); scroll.fullScroll(ScrollView.FOCUS_DOWN);
ありがとう
次のコードを使用して修正しました。
scroll.post(new Runnable() { @Override public void run() { scroll.fullScroll(ScrollView.FOCUS_DOWN); } });
以下のコードを試しましたか..
scroll.scrollTo(0, scroll.getBottom());
これはあなたを助けるかもしれません..