I have a RecyclerView
with a bunch of custom views which may change height after a while, because they contain ImageView
s which load their image asynchronously. The RecyclerView
does not pick up on this layout change, although I call forceLayout
on the ImageView
, and the RecyclerView
is initialized with setHasFixedSize(false)
. All container-parents of the ImageView
have set android:layout_height="wrap_content"
.
How can I make the RecyclerView
update its layout? With good'ol ListView
this was not a problem.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…