Keyboard toolbar slides up after keyboard slides up
Hello all,
each time focus changes on a text field its keyboard appears, looking seemless - which is great, the problem is that it's keyboard toolbar slides up making it look not seemless.
Any way to prevent this? Keyboard doesn't slide up, why should the toolbar!?
Thx!
5 Answers
-
Hi, I've resolved this now, instead of assigning Items to keyboardToolbar of aTextField, you should create a Toolbar sperately and assign animated: false. like following:
var keyboardBar = Titanium.UI.createToolbar({ items:[ flexspace, navButtons], backgroundcolor: "#ffffff", animated: false, height: 60, width: Ti.UI.FILL
});
var aTextField = Ti.UI.createTextField({ width : '100%', height 60, borderStyle : textFieldStyle, keyboardToolbar:keyboardTopBar, });
-
Hi Kelly,
I don't notice any delay on device when the keyboard toolbar example in the Kitchen Sink runs - are you seeing this behavior all the time?
-
Hey Kevin, it only happens when you switch focus between textfields - it initially slides up with the keyboard just fine.
In Kitchen Sink, if you go to Controls > Textfield > Toolbar and switch b/n the two textfields you can see it - principally speaking.
In the Kitchen Sink example, once the keyboard is up and you start switching focus you just see the toolbar sliding up and sliding down to show it and hide it - so imagine if both textfields had a toolbar - if a keyboard is up and you switch focus, the keyboard doesn't move but the blurred toolbar slides down, focused toolbar slides up, back and forth.
Clear as mud?
-
Is there an option to actually stop the toolbar from animating? I just want to toggle the toolbar not animate when the focus switches from one field to the other.
Thanks!
-
I have the same problem, I have 4 fields, every time, when I click prev/next on the keyboard toolbar, the toolbar slides down and up, that is really annoying, don't know how to fix this.