I want to create an android app with Kotlin. In this app, i use swagger also to get all the web service in a file.
I want to create an interface,the description is as follows :
A recycler view horizontal that contains all the list of categories comes from a web service "apiMobileProductCategoriesGetAllPost".
after that, when i click on a which category, a recyclerview(Grid) appear that contains all the product by category id.
I want to know how can i get the categry id when i click on item,and how to use it in the activity
The following the recyclerview category adapter :