Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

CheckBox in custom layout in ListView are automatically changing while scrolling in listView  RSS feed

 
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there.

I have one problem that while I am Scroll down/up a custom listview layout then one of item in my custom layout is checkbox which is automatically getting selected in random up/down scroll.

This is my adapter code


this is my custom xml layout


all thing is work fine that setting listActivity adapter and else
But List Scrolling will sometime change some checkbox to checked?


Where I am wrong?
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to add checkbox to andoroid listview?
You need to create custom adapter for listview.

Okay then you need to create listview and pass the adapter to create checkbox in listview. Find the xml file below to get layout source code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!