Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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.

— asked October 11th 2010 by Ronnie Swietek
  • group
  • scroll
  • tab
  • up
  • winow
0 Comments

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

    — answered October 11th 2010 by Ron Burns
    permalink
    0 Comments
  • 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. :)

    — answered October 11th 2010 by Christopher Stevens
    permalink
    0 Comments
  • 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.

    — answered October 11th 2010 by Ronnie Swietek
    permalink
    0 Comments
  • Yep that did it, thank you

    — answered October 11th 2010 by Ronnie Swietek
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.