如何讓 Scroll View 維持在底部?

190 views
Skip to first unread message

Jou, Jiahe

unread,
Apr 24, 2009, 5:27:00 AM4/24/09
to Android TW Developer
主要是因為我再寫一個訊息接收的程式,

收到訊息後會更新到 EditText 或是 TextView 等等,

我有使用 ScrollView.scrollTo( EditText.getHeight() );

但是都沒辦法完全置底,至少會留一行的空間...

請問有辦法完全置底嗎? 或是最好的做法是什麼?

gasolin

unread,
Apr 30, 2009, 9:38:21 AM4/30/09
to Android TW Developer

剛好前陣子在 irc 上有回答過相同問題

http://gazy.spaces.live.com/blog/cns!C6DAB7D1A0F14906!1474.entry

Reply all
Reply to author
Forward
0 new messages