Connick wrote:
> I'm sure this is an obvious one but I'm at a loss. I'm using my own
> layout for list rows, all well and fine ...but the moment I add a
> checkbox view to the rows layout only the checkbox responds to user
> selection. I'd like for the checkbox to change state if the user taps
> anywhere within a given row. (as with android prefs)

http://stackoverflow.com/questions/1518338/setonitemclicklistener-not-working-on-custom-listview-android

Try setItemsCanFocus(false);, then use onListItemClick() in your
ListActivity (or setOnItemClickListener() for a standalone ListView) to
toggle your CheckBox state.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.0 Available!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to