Animate visibility modes, GONE and VISIBLE

后端 未结 8 2255
我寻月下人不归
我寻月下人不归 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:39

    You can use the expandable list view explained in API demos to show groups

    http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.html.

    To animate the list items motion, you will have to override the getView method and apply translate animation on each list item. The values for animation depend on the position of each list item. This was something which i tried on a simple list view long time back.

提交回复
热议问题