android - PopupWindow Enter Exit Animation not working on Marshmallow (23) -


i have set enter/exit animation style popupwindow

 mpopupwindow.setanimationstyle(r.style.popupanimation); 

and style as

<style name="popupanimation" parent="widget.appcompat.popupwindow">     <item name="android:windowenteranimation">@anim/popup_show</item>     <item name="android:windowexitanimation">@anim/popup_hide</item> </style> 

so , when popupwindow show/hide has animations works fine lollipop , previous android versions. marshmallow popup shows after animation time interval , no animation effects.

popup-show.xml

<set xmlns:android="http://schemas.android.com/apk/res/android"> <alpha android:fromalpha="0.0"     android:toalpha="1.0"     android:interpolator="@android:anim/accelerate_interpolator"     android:duration="1000"/> 

popup-hide.xml

<set xmlns:android="http://schemas.android.com/apk/res/android"> <alpha android:fromalpha="1.0"     android:toalpha="0"     android:interpolator="@android:anim/accelerate_interpolator"     android:duration="1000"/> </set> 


Comments

Popular posts from this blog

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -