I have an application which has some activities that display a single
list and extends ListActivity.  The application also has other
activities that have several things on the screen in addition to a
list, so these activity classes use extends Activity and then include
a ListView in the layout file.

I have noticed that ListActivity provides different default behavior
than the behavior provided by putting ListView in a layout file.

When the list is presented on the screen and the user touches an item
in the list the active area on the screen which responds to the touch
is different for ListActivity vs ListView.  For ListActivity I can
touch anywhere on the row and it will respond, but for ListView I must
touch an area of the row where a word is displayed.

With ListView if the row is blank on the right side of the screen
(because the word or phrase is short), when I touch the right side of
the row nothing happens.  It only responds to touches on the word
itself.

With ListActivity I can touch the blank area of the row and it works
fine.

I think that this must be the result of ListActivity changing some
setting on the list which is not provided as a default by ListView.
The behavior of responding to a touch anywhere on the row is much
nicer than the default behavior I get when using ListView.  With
ListView, it is very annoying to touch the row but get no response
because I didn't touch the word itself.

Does anyone know why these behave differently?   Does anyone know what
setting I should change on ListView to get the nicer behavior that is
the default with ListActivity?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to