I am sorry I phrased my question incorrectly.

Restated:

If I use the track ball to select an item and then press it the
onListItemClick() method is called. However if I press an item on the list
by touching the screen the method does not get called. In my other views
where I my Layout contains only a ListView this works.

-yousuf

On Fri, Jun 19, 2009 at 8:03 PM, Mark Murphy <mmur...@commonsware.com>wrote:

>
> > I have a relative layout which contains 2 things. Something like this:
> >
> > RelativeLayout:
> >     ---LinearLayout
> >         --Some buttons
> >         --TextView
> >     --ListView
> >
> > If I use the trackball to scroll I can select items in my list view.
> > However
> > if I try to touch an item to select it the item doesn't get selected.
> >
> > Any ideas ?
>
> This is expected behavior. Try it in any other application, and you should
> get the same thing. Touch events create list item "clicks", not persistent
> selections.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
>
>
>
> >
>

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

Reply via email to