First list-item selected when starting listactivity from EditText event?

The weird thing is if the ListActivity was started by pressing the enter key in the EditText view, then the first list item is selected right after the startup. If it was started by hitting the button, everything is normal - no list item is selected If they use hardware input (e.g. , Enter key) immediately before you start the ListActivity they will not be in touch mode. If they use the touchscreen immediately before you start the ListActivity they will be in touch mode.

The selection highlight is not shown in touch mode. See here for more.

The weird thing is if the ListActivity was started by pressing the enter key in the EditText view, then the first list item is selected right after the startup. If it was started by hitting the button, everything is normal - no list item is selected. If they use hardware input (e.g. , Enter key) immediately before you start the ListActivity, they will not be in touch mode.

If they use the touchscreen immediately before you start the ListActivity, they will be in touch mode. The selection highlight is not shown in touch mode. See here for more.

Oh I see, that's a feature and not a bug! Now it makes totally sense! Thanks – SimonSays Jun 2 '10 at 17:26.

The first screen contains an EditText and a Button. The second screen is just a simple ListActivity showing 3 static items. The ListActivity is started when the user clicks the Button on the first screen or when the enter key was hit in the TextEdit.

The weird thing is if the ListActivity was started by pressing the enter key in the EditText view, then the first list item is selected right after the startup. If it was started by hitting the button, everything is normal - no list item is selected. That's the code that starts the ListActivity.

Any ideas why that happens?

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