i trying make card flip animation when item(card) clicked in google card list view animation https://github.com/nhaarman/listviewanimations
i working example google cards activity. , i'm trying make card flip when click this: http://bit.ly/1aareu7 problem view goes blank right after card flipped. want cards second item on listview(which position 1). accordind documentation here:http://bit.ly/1aareu7 how view cards supplied:
view rootlayout = //your root view; view cardface = //your desired card face; view cardback = //your desired card back; flipanimation flipanimation = new flipanimation(cardface, cardback); if (cardface.getvisibility() == view.gone) { flipanimation.reverse(); } rootlayout.startanimation(flipanimation);
in case, card been flipped first item , want cards second items view on listview. when put these ↓ values in, card flips(with card face instead of specified card-back) , disappears leaving blank view behind.
here values supplied in cards face , back
view rootlayout = listview.getchildat(position); view cardface = listview.getchildat(position); view cardback = listview.getchildat(1);
pls feed me ideas on how specified view , use in flip animation.
for detail, here full code activity.
activity: http://pastebin.com/ff1x72yt
xml: http://pastebin.com/mz5epjke
note:the listview not scrolllable(for testing purposes) , both first(0) , second item(1) used prototype visible.
Comments
Post a Comment