Android - bottom-up animation in ExpandableListView

I have an ExpandableListView and set the following animation for my subgroups:

  <set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator" >

<translate
    android:duration="900"
    android:fromYDelta="500%"
    android:toYDelta="0%" >
</translate>

  </set>

      

So this is how it looks. Normal condition:

enter image description here

As the group expands, the subgroups are taken from below, overlaying the main groups for a moment:

enter image description here

I need these subgroups not to overlap the main groups while the animation is in effect, and slide "out of the background" of the main group like this:

enter image description here

Any ideas how to achieve this?

+3


source to share





All Articles