More than one EditText - not getting focus, no soft keyboard? (Android)?

It sounds like your touch targets are too small. I would suggest adding some padding to each of your EditTexts, or using a TouchDelegate to increase the size of the touch target.

Thanks for the answer! However, it doesn't seem to make much of a difference... I set the padding for one of the EditTexts to 100px, it takes up almost half the screen, but it still won't grab focus. The only time the EditText grabs focus is when one of the buttons is selected, and I touch anywhere other than on the button - but even then, only the first EditText gets focus, so it feels more like the button just loses focus and it's given to the first focusable element on the screen.

Either there are some focusing rules I don't understand, or something else is capturing the touches... – alex_c Sep 3 '09 at 0:24.

Ah, I figured it out. I had a ListView left in my layout from when I first set up the TabHost. Since it didn't show anything on the screen, and it was at the bottom of my layout file after everything else, I didn't notice it... Just noticed it didn't belong there and erased it, and all the controls started behaving properly.

D'oh.

In the simulator, clicking on any EditText does nothing - the first one always remains selected, and I never get a soft keyboard. This is all inside a TabHost - I've read there are some problems with that configuration, but it sounds like a slightly different issue (the EditText doesn't seem to lose focus - everything works perfectly with the trackball). Any suggestions for what I can check?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions