Sunday, July 10, 2011

[android-developers] Aw: Lack of clicking in ListView


Am Sonntag, 10. Juli 2011 07:15:32 UTC+2 schrieb arudzki:
All,

I'm writing an app that has 3 tabs and a ListView as its first
screen.  Here is a portion of the class that sets up the 3 tabs with
icons and then creates an intent for the MyList.class that is my
ListView class.   This works.  I can select the different tabs and it
switches between the three views.  If I select the "Tracking" tab, I
get the ListView view.

Below the line of asterisks is a portion of code for the MyList
class.  The issue is that I cannot select an item from the list.  I

Try this in onCreate() of ListActivity:

getListView().setItemsCanFocus(true);


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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate