Dialog animation movement

When the question title is passed, I am trying to close the slide down animation dialog. Everything works fine, except that when crawled, all dialog layouts overlap in the Android custom button bar ( Check Attached Screenshot ).

This issue does not occur when opening a dialog. The slide animation is doing great, and it does so because of the inline button bar (which is the desired behavior ... again the screenshot is attached ).

How to fix it?

Below are the xml animations I am using

slide_down.xml

<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
     android:interpolator="@android:anim/accelerate_interpolator">
    <translate
        android:duration="@android:integer/config_shortAnimTime"
        android:fromYDelta="0%p"
        android:toYDelta="100%p"/>
</set>

      

slide_up.xml

<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
    android:fillAfter="true"
    android:interpolator="@android:anim/accelerate_interpolator">
    <translate
        android:duration="@android:integer/config_shortAnimTime"
        android:fromYDelta="100%p"
        android:toYDelta="0%p"/>
</set>

      

Slide Screenshot Dialog Slide Down

Nudge Screenshot Dialog Slide Up

+3


source to share





All Articles