diff --git a/xwords4/android/XWords4/res/layout/chat.xml b/xwords4/android/XWords4/res/layout/chat.xml index e1f02e40b..2ac2bff36 100644 --- a/xwords4/android/XWords4/res/layout/chat.xml +++ b/xwords4/android/XWords4/res/layout/chat.xml @@ -9,7 +9,8 @@ - diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/ChatDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/ChatDelegate.java index bb2cbcd67..fa834906e 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/ChatDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/ChatDelegate.java @@ -30,6 +30,7 @@ import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; +import android.widget.ScrollView; import android.widget.TextView; import org.eehouse.android.xw4.DlgDelegate.Action; @@ -67,6 +68,14 @@ public class ChatDelegate extends DelegateBase } } + final ScrollView scroll = (ScrollView)findViewById( R.id.scroll ); + scroll.post(new Runnable() { + @Override + public void run() { + scroll.fullScroll(View.FOCUS_DOWN); + } + }); + ((Button)findViewById( R.id.send_button )) .setOnClickListener( this );