_items,
_visibleRows,
_rowHeight,
_selectedIndex);
final UiApplication uiApp = UiApplication.getUiApplication();
// Now create the zooming transition effect to make the spinner appear
TransitionContext transition = new TransitionContext(TransitionContext.TRANSITION_ZOOM);
transition.setIntAttribute(TransitionContext.ATTR_DURATION, 250);
transition.setIntAttribute(TransitionContext.ATTR_KIND, TransitionContext.KIND_IN);
UiEngineInstance engine = uiApp.getUiEngineInstance();
engine.setTransition(null, customSpinnerPopup, UiEngineInstance.TRIGGER_PUSH, transition);
transition = new TransitionContext(TransitionContext.TRANSITION_ZOOM);
transition.setIntAttribute(TransitionContext.ATTR_DURATION, 250);
transition.setIntAttribute(TransitionContext.ATTR_KIND, TransitionContext.KIND_OUT);
engine.setTransition(customSpinnerPopup, null, UiEngineInstance.TRIGGER_POP, transition);
// Push the screen to the foreground
uiApp.pushModalScreen(customSpinnerPopup);
Object[] result = new Object[1];
// Record the result that the user chose. If they didn't choose an
// option return undefined
if(customSpinnerPopup.isSet()) {