To display a one page story in my app, I am using a recylerview with each viewholder containing a text paragraph or an image.
@Override
public void bindItem(Story story, Asset asset) {
super.bindItem(articleBodyBlock, asset);
TextView textView = (TextView) itemView.findViewById(R.id.text);
textView.setLinksClickable(true);
textView.setMovementMethod(LinkMovementMethod.getInstance());
textView.setText(story.text, TextView.BufferType.SPANNABLE);
}
On marshmallow devices only, I am able to select text. But when I scroll down to another paragraph (or scroll back up to the same paragraph) and try a long press, I don't get the marshmallow floating text selection bar.