Window in tab group
I have a window in a tab group and the window has 5 text input fields on it. When I click in each field, the key board pops up. Thats all good except when I am in the middle of the screen, the keyboard covers the text fields I am trying to input into. How do I scroll that window up so it doesn't do that.
Sorry if this is a noob question.
4 Answers
-
If you place your input text fields in a scroll view, and add that view to the window, I think you'll see the behaviour you're looking for.
See http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.ScrollView-object
Ron
-
Hmmm. Newb answer for a newb question:
You want the keyboard to pop up when you touch a field (on a droid anyway). When finished with the field, you hit the 'done' button to hide the keyboard (button is part of the keyboard), or hit the 'next' button to go to the next field. I've found it difficult to work with fields when hitting the next button in general (generally, not specific to Titanium), but it is what it is.One feature on some apps out there I found to be nice is that they have a grayed out field label in the field itself until you start typing. That way you know what you are going to fill out when you hit 'next'. I wonder if the 'hintText' property will work for that as seen at http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.TextField-object
Hope that answers your question. :)
-
I already have it popping up up the key board and using hintText rather than using labels. The problem is when I click a field that is further down the window, the keyboard slides up over the text field and you cant see what you are inputting. I am using the iphone emulator right now btw.
-
Yep that did it, thank you