android - How to display multiple Texts and Images in an item of RecyclerView or ListView? -


i'm using recyclerview display list of data server. data contain text , uncertain number of urls of images html tag. each item, i'm using html.fromhtml() imagegetter parse data, images , display them in textview.

however, images in textview cannot interact user. events on images click, magnifying , save not supported textview. , tried using webview instead, performance poor.

tried write compound view extends linearlayout, , add textviews , imageviews dynamically (the number of images each item not certain), behaved strangely in recyclerview.

is there better idea or should improve solutions forementioned?

thanks in advance!

the solution has been found myself of other programmers on stackoverflow. may see question, please check android - custom dynamically-generated compound view recreated in recyclerview, causing poor performance.
idea simple, creating compoundview extending linearlayout adds textviews , imageviews dynamically based on data attached. note processes of creating views , setting data them seperate. other details, please check url above.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -