Animate visibility modes, GONE and VISIBLE

后端 未结 8 2100
我寻月下人不归
我寻月下人不归 2021-01-30 01:54

So im trying to animate when i set the visibility of a linearlayout with other widgets, from GONE to VISIBLE and the opposite.Im using togglebuttons to show and hide. Here\'s an

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 02:45

    Like tomash said before: There's no easy way.

    You might want to take a look at my answer here.
    It explains how to realize a sliding (dimension changing) view.
    In this case it was a left and right view: Left expanding, right disappearing.
    It's might not do exactly what you need but with inventive spirit you can make it work ;)

提交回复
热议问题