Reputation: 1291
How can I disable window animations for specific window? (i.e. the same effect as setting Window animation scale" to "off" in the developer options.
popupWindow.setAnimationStyle(0);
does not seem to do anything.
Thanks,
Upvotes: 4
Views: 2802
Reputation: 2820
Try android.R.style.Animation which is a base style for animations. Documentation says that this style specifies no animations.
popupWindow.setAnimationStyle(android.R.style.Animation);
Upvotes: 4