Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (keyboard)
Viewing all articles
Browse latest Browse all 352

How much time does it take for a keyboard to popup/hide?

$
0
0

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.

  1. Is the time same on Android/IOS?
  2. 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);
            });

Viewing all articles
Browse latest Browse all 352


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>