posted 7 years ago
I am writing a book store app, in which users can buy or rent books. And, when user buy book , book is added to userCatalogue list. Then when user clicks on MyCatalogue button, table is shown with two columns - first contains book front page image, and second contains description about book. (path to image and description are atributes in Book class).
When I buy first book, image is good. But then, when I buy second, third etc. book, image for all books are changed in last book image. ( all book images are equals to last book image)
(description column works good)
Code for table
I think this is not good way, becouse there is a list of book objects, and one image view, so that is why is for all books same image, from last book, but I have no idea how to fix it. Appreciate any help/hints.