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,750
  • 31
  • 68
  • 83
Lisa Anne
  • 4,482
  • 17
  • 83
  • 157

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,213
  • 2
  • 27
  • 37