-3

I have list of cards in gridview all are static i want to add onclick to each card and open a link in webview when clicked different link for different card.

1 Answers1

0

https://antonioleiva.com/recyclerview-listener/

use this for reference for onclick item of recyclerview.

NOTE

below sentence will be understood, only when you follow the above link

Now after doing all the steps, you will have a method in Activity after implementing the interface. pass the position to the method.

In that method, add switch case, based on position you got, call the webview with that particular uri.

Mohd Asif Ahmed
  • 1,880
  • 2
  • 15
  • 29