Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Customised ListView, problem of add ImageView,TextView and CheckBox  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to define a customised ListView,I put a ViewGroup in each row and I use adapter to
add ImageView, TextView和 check boxeach in each ViewGroup. It has some problem now
, the OnItemClickListener function of ListView can't work, I can't touch the ListView to trigger the OnItemClick event.

code as follows:





If I remove the CheckBox, the OnItemClickListener function work find(Likes the, to remove the checkbox)

I want to know which CheckBox is choosen, so I must to know which line I clicked...
someone can help me, please? it perplex me several days.

Thanks a lots
Don't count your weasels before they've popped. And now for a mulberry bush related tiny ad:
Rocket Oven Kickstarter - from the trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!