this.closeKeyboard();
}
protected void closeKeyboard(){
float width = this.getWidthXY(TransformSpace.RELATIVE_TO_PARENT);
Animation keybCloseAnim = new Animation("Keyboard Fade", new MultiPurposeInterpolator(width, 1, 300, 0.2f, 0.5f, 1), this);
keybCloseAnim.addAnimationListener(new IAnimationListener(){
public void processAnimationEvent(AnimationEvent ae) {
// float delta = ae.getAnimation().getInterpolator().getCurrentStepDelta();
switch (ae.getId()) {
case AnimationEvent.ANIMATION_STARTED:
case AnimationEvent.ANIMATION_UPDATED:
float currentVal = ae.getAnimation().getInterpolator().getCurrentValue();
// keyboard.setWidthXYRelativeToParent(currentVal);
setWidthRelativeToParent(currentVal);
break;
case AnimationEvent.ANIMATION_ENDED:
setVisible(false);
destroy();
break;
default:
break;
}//switch
}//processanimation
});
keybCloseAnim.start();
}