开发者

Rotating a listview cell in Android

开发者 https://www.devze.com 2023-02-17 18:09 出处:网络
I am trying to make an app which gives the information about开发者_如何学Go the flights and its timing to the user when he enters the flight number, I am able to bring the list of flights in a listvie

I am trying to make an app which gives the information about开发者_如何学Go the flights and its timing to the user when he enters the flight number, I am able to bring the list of flights in a listview, but I want to enhance it by adding some animation to the cell like the one which we see in the boards at air port, basically i want the cell to rotate with reference to horizontal axis passing through the middle of the cell. Posting the link where you can find some images. I used rotationAnimation but could not obtain the required animation.

AirportBoard


After a break came back to this and found out that its so easy. I tweaked the RotateAnimation3D class in ApiDemos to make the rotation with respect to X axis and then applied that animation to the Listview with some added delay and it worked.

0

精彩评论

暂无评论...
验证码 换一张
取 消