Disable window and transition settings

坚强是说给别人听的谎言 提交于 2019-12-01 11:48:53

Check you are setting the correct scales.

Settings.System.TRANSITION_ANIMATION_SCALE 

Will change the Activity transitions.

Where as:

Settings.System.WINDOW_ANIMATION_SCALE

Will effect the Window animations such as Dialogs opening.

(Added API16) This will enable/disable View specific animations.

Settings.System.ANIMATOR_DURATION_SCALE

Also I'm pretty sure these are floats as these can be 0.5x animation settings meaning half speed. I have never tried these from an App before.

But two things come to mind:

  • The ContentProvider is asynchronous, and you will need to listen to the Setting to finished being set
  • Also that these will probably not work until you create/finish and activity. meaning changing them mid activity might not effect the current Activity, but I will have to test that theory.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!