android - Fragment Transition - postpone until RecyclerView has laid out relevant elements -
i'm postponing transition between 2 fragments both contain recyclerviews
trick of creating fragment, hiding , show when recyclerview
ready...
like explained here: https://halfthought.wordpress.com/2015/06/04/postponing-fragment-transitions/
my problem is, not work, views of recyclerview seem not layout out correctly when recyclerview
predrawn, results in wrong transitions (in case child views of recyclerview
calculate sizes in oncreateviewholder
, must finish before transitin starts). adjusted adapter in way adapter reports when relevant views bound, can continue transition, not work, recyclerview
not start laying out it's child views, because recyclerview
not visible yet...
can somehow force recyclerview
layout it's children though it's hidden? other suggestions?
Comments
Post a Comment