Creating a 3D flip animation in Android using XML

2019-01-29 23:52发布

I have created a 3D flip of a view using this android tutorial However, I have done it programmatically and I would like to do it all in xml, if possible. I am not talking about simply shrinking a view to the middle and then back out, but an actual 3D flip.

Is this possible via xml?

7条回答
贼婆χ
2楼-- · 2019-01-30 00:53

Adding to A. Steenbergen's great answer. When flipping the same view (updating a TextView for example) I removed the View.Visibility change in the constructor in order to keep the transition smoother.

public FlipListener(final View front, final View back) {
    this.mFrontView = front;
    this.mBackView = back;
}
查看更多
登录 后发表回答