make Scrollview scroll down automatically

Asked

Viewed 528 times

0

hello, I have a chat application but as it goes with messages the user is obliged to see tds messages typed from the first, he should scroll the bar until the end to see the last message, already researched some ways to solve it but I did not find. the solution I found was this:

      scrollViewObject.postDelayed(new Runnable() {
        @Override
        public void run() {
            scroll.fullScroll(ScrollView.FOCUS_UP);
        }
    }, 600);

but of error. someone can help me?

  • Ask the question the error gives.

  • it does not recognize the part scrollViewObject.postDelayed and scroll.fullScroll

  • it does not recognize the part scrollViewObject.postDelayed and scroll.fullScroll

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.