I have animation for view moving when a keyboard shows/hides. I was trying to synchronize the animation with the time it takes the keyboard.
- Is the time same on Android/IOS?
- Dose it take same time for all Androids?
var userNameTextField = Ti.UI.createTextField({ borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED, color: '#336699', top: 219, left: 10, width: 250, height: 60, editable: false }); startWin.add(userNameTextField); userNameTextField.addEventListener('click', function() { userNameTextField.editable=true; var animation = Titanium.UI.createAnimation(); animation.duration = 100; animation.top = -50; startWin.animate(animation); userNameTextField.focus(); }); userNameTextField.addEventListener('return', function(e) { var animation = Titanium.UI.createAnimation(); animation.duration = 100; animation.top = 20; startWin.animate(animation); });