I found the answer to this problem just now.
It seems that my theme attributes ruined the animation. To solve this problem, I had to set the following attributes:
<item name="android:windowIsTranslucent">false</item> <item name="android:windowIsFloating">true</item>
which were originally:
<item name="android:windowIsTranslucent">true</item> <item name="android:windowIsFloating">false</item>
After that, it worked correctly on Kitkat, and I tested other APIs, and it still works as expected. Hope this helps someone else solve this problem.
source share