/** * Shows the widget at the specified index. This causes the currently- visible * widget to be hidden. * * @param index the index of the widget to be shown */ public void showWidget(int index) { checkIndexBoundsForAccess(index); Widget oldWidget = visibleWidget; visibleWidget = getWidget(index); if (visibleWidget != oldWidget) { if (slideAnimation == null) { slideAnimation = new SlideAnimation(); } slideAnimation.showWidget(oldWidget, visibleWidget, isAnimationEnabled && isAttached()); } }
/** * Shows the widget at the specified index. This causes the currently- visible * widget to be hidden. * * @param index the index of the widget to be shown */ public void showWidget(int index) { checkIndexBoundsForAccess(index); Widget oldWidget = visibleWidget; visibleWidget = getWidget(index); if (visibleWidget != oldWidget) { if (slideAnimation == null) { slideAnimation = new SlideAnimation(); } slideAnimation.showWidget(oldWidget, visibleWidget, isAnimationEnabled && isAttached()); } }
/** * Shows the widget at the specified index. This causes the currently- visible * widget to be hidden. * * @param index the index of the widget to be shown */ public void showWidget(int index) { checkIndexBoundsForAccess(index); Widget oldWidget = visibleWidget; visibleWidget = getWidget(index); if (visibleWidget != oldWidget) { if (slideAnimation == null) { slideAnimation = new SlideAnimation(); } slideAnimation.showWidget(oldWidget, visibleWidget, isAnimationEnabled && isAttached()); } }