Category: Retrofit

  • MVVM With Retrofit and Recyclerview in Kotlin [Example]

    MVVM With Retrofit and Recyclerview in Kotlin [Example]

    MVVM architecture is a Model-View-ViewModel architecture that removes the tight coupling between each component. Most importantly, in this architecture, the children don’t have a direct reference to the parent, they only have the reference by observables. What is MVVM? MVVM stands for Model, View, ViewModel. Model: This holds the data of the application. It cannot directly talk to […]

  • Easy Way To Implementing Pagination With Recyclerview

    Easy Way To Implementing Pagination With Recyclerview

    Pagination with Recyclerview allows the user to see the latest content page by page. As we load the next ‘page’ by the time users scroll to the bottom, more content is loaded and available. What is Recyclerview? Android RecyclerView is a more advanced, powerful, and flexible version of ListView. Android RecyclerView is similar to ListView except that […]

  • Easy Guide To Setup Retrofit In Android With example

    Easy Guide To Setup Retrofit In Android With example

    In this Retrofit Android tutorial, I am going to explain how to use the Retrofit REST client to consume the Rest Web services. Basically, Retrofit was developed by Square and It’s a type-safe REST client for Android. In this post, I am explaining code in java. Please check my other post for the Retrofit example in […]

  • Easy Setup To Retrofit In Android With Example

    Easy Setup To Retrofit In Android With Example

    In this Retrofit Android tutorial, I am going to explain how to use the Retrofit REST client to consume the Rest Web services. Basically, Retrofit was developed by square and It’s a type-safe REST client for Android. In this post, I am explaining code in java. Please check my other post for the Retrofit example in […]

  • Best way to mock Retrofit Response In Android

    Best way to mock Retrofit Response In Android

    An easier way is to ask the backend developer to create the API service and just send fake content for the sake of it. The underlying notion is that we are not backend developers and it is not our responsibility to provide the endpoint. In this article, we’ll explore the option which involves using Interceptors offered by OkHttp to […]