I receive categories data from server in Json using retrofit and save in array catlist
. each category has a CategoryID
and CategoryName
.
i want to use tablayout to show all of categories(not much) and with selecting tabs , use CategoryID
to get items with this id from server and show in recyclerview. i don't know how do this .
Asked
Active
Viewed 663 times
0

Vahid H
- 45
- 6
-
Please show some codes you have tried so far. – Tepits Aug 29 '18 at 09:20
-
@Tepits Unfortunately i have not been able to make a dynamic tablayout and this is problem – Vahid H Aug 29 '18 at 09:25
-
https://stackoverflow.com/a/34308112/6891563 Does this help you – Khemraj Sharma Aug 29 '18 at 09:28
-
@Khemraj not really – Vahid H Aug 29 '18 at 09:47
1 Answers
0
Fortunately i get the answer! this link helped me to have a dynamic tablayout
:
Github link

Vahid H
- 45
- 6