<style name="popup_window_animation_vertical" parent "=" android: Animation & gt;"
</style>
The animation for push_bottom_in admission, about admission animation code is as follows:
<? The XML version="1.0" encoding="utf-8"?>Android: duration="300"
Android: fromYDelta="100% p
"Android: toYDelta="0"/& gt;
Then I set the animation in the Popupwindow:
setAnimationStyle (R.s tyle. Popup_window_animation_vertical);
In constantly tests found that animation is from the bottom up, (if you don't set this animation Popupwindow won't appear the effect of dynamic access, validate my animation effect), but I try to modify the entry in the animation "android: duration", no matter how to modify the ferry the length of the animation didn't actually change the ferry the length of the animation,
CodePudding user response:
I use the android studio version 4.1.3, test of mobile phone is android9.0 huawei nova2s, using the AndroidX dependence,