The moose likes Android and the fly likes In listview changing background of button in rows on click of button in one row Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "In listview changing background of button in rows on click of button in one row " Watch "In listview changing background of button in rows on click of button in one row " New topic
Author

In listview changing background of button in rows on click of button in one row

Anuj Prashar
Ranch Hand

Joined: Apr 15, 2008
Posts: 99

Hi all!

I have a listview with play button to play songs in each row. When i click on play button its background changes to pause button. What i want is when I click on play button in one row, the button that has background set to pause image on previous click should automatically change to play image and only the button which I has clicked should have pause background.
On click of button in a row of listview how to change other rows buttons background?




Thanks,
Anuj
[Thumb - image.png]
 Filename image.png [Disk] Download
 Description list image
 Filesize 51 Kbytes
 Downloaded:  45 time(s)



SCJP 5,SCWCD 5, RHCT
 
 
subject: In listview changing background of button in rows on click of button in one row
 
Threads others viewed
Not able to repaint button
problem in colors of cells JTable
How to expand listview with footer click event to load more data
Removing row from table
problem in colors of cells JTable (check this one)
IntelliJ Java IDE