I found a typo in the setAnimationStyle method. window.setAnimationStyle((isOnTop) ? R.style.Animations_PopDownMenu_Right : // maybe R.style.Animations_PopUpMenu_Right R.style.Animations_PopDownMenu_Right);
I found a typo in the setAnimationStyle method.
window.setAnimationStyle((isOnTop) ?
R.style.Animations_PopDownMenu_Right : // maybe R.style.Animations_PopUpMenu_Right
R.style.Animations_PopDownMenu_Right);