So basically I have a custom view that contains a ListView with a custom adapter that has the ability to read information from the web (stunned HTML) and display it in line by line.
All this works, but I need the text that is being read to be processed as HTML, which contains links that you can use and run in the browser.
I managed to do this:
text.setText(Html.fromHtml(textBuffer), TextView.BufferType.SPANNABLE);
text.setMovementMethod(LinkMovementMethod.getInstance());
Works great, any links <a href=""></a>in the text are displayed as links and can be used.
This is a side effect that now makes it such that the rest of the rows in the ListView cannot be involved (or listened and held). Basically, now all rows cannot be selected.
Is there any way to achieve what I need?
thank!
source
share