简体   繁体   中英

get data from api and show in recyclerview

i want to get data from API and show that in RecyclerView, then after click on any items, go to another activity and show the result that a get from another api.

i share image from postman with you and i hope you could help me for this

i'm using android stdio and java and i prefer to use retrofit for call from api

thanks for your attention...

Brands Api for MainActivity.java

Products Api for Second Activity

you need to use Retrofit for getting data from API.. you can checkout a tutorial like this - https://howtodoandroid.com/retrofit-android-example/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM