Does anyone know which widget do these applications use for their feeds? It looks like a custom ListView
and HTML
blending together. I wonder how can we make something similar to that?
This is really interesting question. They use custom list items, and the most interesting part is TextView with links working. Here is what I have found:
TextView textView = (TextView) findViewById(R.id.my_text_view);
textView.setMovementMethod(LinkMovementMethod.getInstance());
Those two lines of code, will make links(<a>
tags) in TextView clickable.
They probably also use this method: https://developer.android.com/reference/android/widget/TextView.html#setLinkTextColor(android.content.res.ColorStateList) - to set custom link background changes when user click the link.