I have a tabhost with numerous Edittext, how or what controls which edittext has the initial focus on startup?
I have a series of edittext that accept input sequentially from the user. For some reason the last edittext in the order has focus on start-up. I could force the focus away to the correct edittext; however, I have code that warns the user that input it necessary and this is triggered if I forcibly move the focus.
It would be easier to ensure the first edittext has focus from the start.
Edit: Ok, found out it's something to do with the tree order in the designer that decides what has focus first. Can this be changed grammatically?
I have a series of edittext that accept input sequentially from the user. For some reason the last edittext in the order has focus on start-up. I could force the focus away to the correct edittext; however, I have code that warns the user that input it necessary and this is triggered if I forcibly move the focus.
It would be easier to ensure the first edittext has focus from the start.
Edit: Ok, found out it's something to do with the tree order in the designer that decides what has focus first. Can this be changed grammatically?
Last edited: