I'm trying to make a swap animation of two cells in ListView<String>. The code looks like:
Everything works, except one thing. If cellMax is out from viewport of ListView ( you need to scroll listview to see cellMax) then it's not rendered (or visible) when Transition changes cellMax.tranlateY.
I tried to do: cellMax.setVisible(true), cellMax.setOpacity(1) but nothing helped.
Don't know if that can help, but for cellMin in a debug:
LayoutFlag = CLEAN
Visible = BooleanProperty [bean: ListViewSkin$2@4a5c2efb[styleClass=cell indexed-cell list-cell]'book0', name: visible, value: true]
And for a cellMax (that located out of viewport) :
LayoutFlag = NEEDS_LAYOUT
Visible = null
How can i render cellMax, when it appear in viewport by Translating it's Y value? Or may be there is another way to swap two cells with a Transitions?