android - Disable rotation animation on clicking 'navigation drawer indicator' ( hamburger icon) -


how disable rotation animation on clicking 'navigation drawer indicator'
( hamburger icon) ?

i'm using htc model on geny motion emulator(1 gb ram). on clicking navigation drawer icon, there slight lag on nav panel sliding (opening , closing).

so,i think, disabling animation make sliding smoother.

(i'm using navigation drawer default template)

you can use setdrawerslideanimationenabled(boolean) enable or disable drawer arrow animation when drawer position changes. example of be:

// installs drawer toggle drawertoggle = new actionbardrawertoggle(this, drawerlayout,                  r.string.drawer_open, r.string.drawer_close);  // disables animation drawertoggle.setdrawerslideanimationenabled(false); 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -