• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Customised ListView, problem of add ImageView,TextView and CheckBox

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

Activity


Adapter


AppList



main.xml

If I remove the CheckBox, the OnItemClickListener function work find(Likes the ApplicationListAdapter.java, 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
 
You’ll find me in my office. I’ll probably be drinking. And reading this tiny ad.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic