ListView animation bug on item click
i've got a listview in my app and i've got an onitemclick listener 开发者_C百科on it. In a row there is a framelayout and there are two view inside. what i want to do is, when i click on the item, the first layout slide away with an animation to show the second one which is below. I did this, but my problem is that sometimes it works and sometimes not. Most of the time it works after scrolling. I'm looking for my mistake for hours, so if someone have an idea, it will be great :)
thanks
I found it. To avoid this kind of problem, do not use the "wrap_content" property on your listview. I tested it, and it works !
精彩评论