android - Refresh or relayout the new convertView like first time when listview call getView() -


i have listview use gesturedetector handle swipe left. each item, layout below:

[framelayout]     [linearlayout] hidden_menu [/linearlayout]     [linearlayout] main_layout [/linearlayout] [/framelayout] 

, handle ontouchlistener. when move main_layout right, hidden_menu shown [sample image]. when move other item right, or moveup or movedown listview, hide hidden_menu of old (or opened) item using objectanimator (x) , @ end animation called main_layout.invalidate().

my problem when scroll listview, reuse row layout viewholder pattern, new row wrong layout (some hidden_layout visibled).

1) ideas refresh new item when getview() called?

2) or how refresh animated item first time

i hope guys can understand me !

thanks , best regards!

i found solution in case:

if(holder.mhiddenmenu.getleft() != 0) {     holder.mhiddenmenu.settranslationx(0); } 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -