• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Cell Animation in ListView

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello again.

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?

Big thanks for any help


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!