I fixed using the method below:
public static void disableShowHideAnimation(ActionBar actionBar) { try { actionBar.getClass().getDeclaredMethod("setShowHideAnimationEnabled", boolean.class).invoke(actionBar, false); } catch (Exception exception) { try { Field mActionBarField = actionBar.getClass().getSuperclass().getDeclaredField("mActionBar"); mActionBarField.setAccessible(true); Object icsActionBar = mActionBarField.get(actionBar); Field mShowHideAnimationEnabledField = icsActionBar.getClass().getDeclaredField("mShowHideAnimationEnabled"); mShowHideAnimationEnabledField.setAccessible(true); mShowHideAnimationEnabledField.set(icsActionBar,false); Field mCurrentShowAnimField = icsActionBar.getClass().getDeclaredField("mCurrentShowAnim"); mCurrentShowAnimField.setAccessible(true); mCurrentShowAnimField.set(icsActionBar,null); }catch (Exception e){
Kani
source share