Animate view sliding out of another view, pushing views below out of the way

后端 未结 7 1552
野趣味
野趣味 2020-12-22 21:27

I have a list of buttons. When I press a button, a View should slide in a downwards motion out of the button, like this:

Start:

相关标签:
7条回答
  • 2020-12-22 22:10

    Maybe you can set the height to 0 and gradually increase the height. But then you will have the problem that you have to be sure your text is aligned at the bottom of the view. And also to know what the maximal height of the view should be.

    0 讨论(0)
提交回复
热议问题