Creating a 3D flip animation in Android using XML

后端 未结 8 1766
萌比男神i
萌比男神i 2020-12-22 20:25

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

8条回答
  •  爱一瞬间的悲伤
    2020-12-22 21:03

    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;
    }
    

提交回复
热议问题