0

I have a ListView.

Each item of the ListView is a small WebView.

I want my ListView to scroll to the bottom when the ListView is displayed.

But, alas, nothing seems to work:

lv.setTranscriptMode(ListView.TRANSCRIPT_MODE_ALWAYS_SCROLL);
mListView.setStackFromBottom(true);

No success.

myListView.post(new Runnable() {
    @Override
    public void run() {
        // Select the last row so it will scroll into view...
        myListView.setSelection(myListAdapter.getCount() - 1);
    }
});

No success.

Qantas 94 Heavy
  • 15,410
  • 31
  • 63
  • 82
Lisa Anne
  • 4,654
  • 16
  • 75
  • 151

1 Answers1

0

Added the TouchListener in android listvieew each row webview.

mWebView.setOnTouchListener(new View.OnTouchListener() {
    @Override
    public boolean onTouch(View v, MotionEvent event) {
        return true;
    }
});
Md Abdul Gafur
  • 6,169
  • 2
  • 26
  • 37