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
Post a Comment