-3

I have recyclerview listing which have two buttons. Add to Cart or Go To Cart. One of them Visibility is gone. When i click on add to cart button. It will hiding the add to cart button and show the go to cart button.its working fine. But when i scroll the recyclerview list then it automatically change the button to Add to cart. Please help me to sort out this problem Thanks

  • While asking questions on StackOverflow it's a good practice to [create a Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve) – Shashanth Dec 10 '16 at 06:19

1 Answers1

1

You should manage one boolean variable in Model class. Because your list is updated, but you recycleview is not notified so that you have to update the list and the notify adapter.

Mavya Soni
  • 887
  • 7
  • 14