Free at home?Look at EventBus parsing and write EventBus with me

Preface Originally notified to resume work this Monday, it seemed that things were not simple, and it was postponed to next week's 1, but I still had to work from home for some time. Yesterday, some fans asked me why I didn't change my mind. Yesterday, I went to the company in batches for an afternoon meeting. All the people in batches had mas ...

Added by tipjones on Wed, 19 Feb 2020 04:28:06 +0200

Retrofit: basic use of 2.2.0

retrofit:2.2.0 framework has powerful functions and excellent encapsulation in network loading. Today we will learn about its basic usage 1. Import dependency: Here, we also import the excellent framework of gson implementation 'com.squareup.retrofit2:retrofit:2.2.0' implementation 'com.squareup.retrofit2:conve ...

Added by totof06 on Mon, 06 Jan 2020 06:05:24 +0200

Android MVVM upgrade DataBinding+Retrofit+RxJava+ViewModel+LiveData

This article mainly uses the generic optimization project structure to explain the key modifications. If you don't understand the project structure, please see my last two Blogs: Android MVVM improved DataBinding+Retrofit+RxJava+ViewModel+LiveData (2) Android MVVM Basic Edition DataBinding+Retrofit+RxJava (1) I. modify BaseA ...

Added by ramrod737 on Fri, 22 Nov 2019 19:58:57 +0200

Android Network Request 4--Parsing Retrofit Source Code

Articles Catalogue 1. Introduction to Retrofit 2. Retrofit usage (asynchronous) 2.1 Adding Dependencies 2.2 Adding Network Permissions 2.3 Create a class for receiving server to return data 2.4 Create an interface for describing network requests 2.5 Create Retrofit instances 2.6 Creating an Example ...

Added by Alanmoss on Tue, 06 Aug 2019 12:53:25 +0300

Android Encapsulates Rxjava2+Retrofit Perfectly

I learned the basic usage of Rxjava and Retrofit last year, but I haven't used them in actual projects.Starting a new project this year, we decisively introduced RxJava and Retrofit into the new project.This article describes the author's encapsulation of Retrofit in the project.Let's first see how Retrofit works after encapsulation. RetrofitH ...

Added by celebx on Tue, 06 Aug 2019 04:13:25 +0300

RxJava (Responsive Function Programming) First Experience

Responsive Function Programming_RxJava & RxAndroid Home page: https://github.com/ReactiveX/RxJava Chinese material: https://github.com/lzyzsd/Awesome-RxJava https://www.zhihu.com/question/35511144 1. Purpose: Asynchronous operation You can still keep the logic of your code concise in cases where the logic of you ...

Added by ekalath on Thu, 11 Jul 2019 19:33:38 +0300

RxJava 1.x from introduction to abandonment to RxJava 2.x (2)

Preface RxJava 1.x from entry to abandonment to RxJava 2.x (1) This article explains the simplest introduction, and in this section we will learn about RxJava thread scheduling together. text In the beginning of the last article, RxJava was used to handle asynchronous tasks. But by default, subscribe() is invoked in which thread we produce ...

Added by RickyF on Sat, 06 Jul 2019 23:36:13 +0300

Retrofit 2.0 Source Code Analysis

Retrofit 2.0 describes an HTTP request in the form of annotations, abstracts the HTTP request into a Java interface, and then uses Java dynamic proxy to "translate" the annotation of this excuse into an HTTP request, and then executes the HTTP request. Examples are given to illustrate: Request an api: https://api.github.com/repos/{o ...

Added by harkonenn on Sun, 30 Jun 2019 22:31:49 +0300

RxEasyHttp: A Simple and Easy Network Request Framework Based on RxJava+Retrofit2

Source address: https://github.com/zhou-you/RxEasyHttp RxEasyHttp This library is a simple and easy-to-use network request framework based on Retrofit2+RxJava. It combines the characteristics of android platform with network encapsulation library. It uses api chain to call one point to the end, integrates cookie management, multiple cachi ...

Added by Archangel915 on Sun, 23 Jun 2019 22:13:35 +0300

RxJava 2.0 tutorial from scratch (4) Application in Android

From: http://blog.csdn.net/qq_35064774/article/details/53065400 1. Preface In article 123, I introduced the basic usage of RxJava 2.0. This article will be introduced in Android The basic usage of the phrase ___________.   Attached are links to this series of tutorials.  Rx Java 2.0 tutorial from scratch (1) Foundation RxJav ...

Added by leetcrew on Sun, 23 Jun 2019 00:17:57 +0300