Android Developers are often tasked with displaying a list of data from a URL endpoint. In this tutorial, let's see how to make a REST API call on a background thread using Anko, a background thread utility by the creators of Kotlin. Let's also use Gson (by Google) to parse the JSON data into a model, and display the data as a grid with a RecyclerView. Ready? Let's get started!
Sample API for testing: https://finepointmobile.com/data/prod...
Anko: https://github.com/Kotlin/anko
Gson library: https://github.com/google/gson
Connect with me on LinkedIn! / danielmalone
Follow me on Twitter: / danielmalone
Have a good day!
Смотрите видео Setting up Gson to parse JSON for a RecyclerView (Ecommerce #10) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь DJ Malone 20 Октябрь 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 5,539 раз и оно понравилось 60 людям.