Not sure exactly what problem you are seeing. If you want separation
between the things you append, then append some extra space or line
feeds like this:
mTextView.append("\n");
mTextView.append(mText);
If you want to replace the things that were previously in the
TextView, then use the setText method:
mTextView.setText(mText);
If you want the ScrollView to properly account for the things you just
added and go all the way down to the bottom then use this monstrosity:
mScrollView.post(new Runnable() {
public void run() {
mScrollView.fullScroll(ScrollView.FOCUS_DOWN);
}
});
On Sep 5, 3:58 pm, Francesco Pace <[email protected]> wrote:
> Up!
>
> 2009/9/5 Francesco Pace <[email protected]>
>
> > Hi developers,
> > I have a question.
> > In my android application I have a TextView in a ScrollView.
>
> > I want to update TextView dinamically and I write this statement :
>
> > mTextView.append(mText);
> > mScrollView.pageScroll(ScrollView.FOCUS_DOWN);
>
> > and so my application works.
> > Unfortunately the strings that I have to insert are shown ALL TOGETHER at
> > the end of application.
> > Can anyone help me?
>
> > Thanks.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---