Custom View - Property Animation

ViewPropertyAnimator package com.zhoujian.retrofit.activity; import android.animation.Animator; import android.animation.ObjectAnimator; import android.animation.ValueAnimator; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; imp ...

Posted on Sat, 22 Feb 2020 06:35:05 -0800 by Jabop

Android Retrofit source series ~ file upload

Introduction to Retrofit series: Android Retrofit source code series (I) ~ principle analysis Android Retrofit source series (2) ~ custom CallAdapter Android Retrofit source series (3) ~ integration of RxJava and Coroutine analysis Android Retrofit source series (IV) ~ file upload Android Retrofit sour ...

Posted on Sat, 18 Jan 2020 02:58:43 -0800 by Buddski

Take you step by step through Retrofit source parsing: a network request framework based on OkHttp

What is the difference and connection between OkHttp and Retrofit? Reference Answer:OkHttp and Retrofit are both popular open source frameworks for networks Packaging is different:Retrofit encapsulates specific requests, thread switching, and data conversion.retrofit encapsulates okhttp using proxy, appearance, and policy patternsOkHttp is a s ...

Posted on Tue, 07 Jan 2020 10:33:13 -0800 by fox_m

Use of Android Retrofit

Step one:   Dependent package import: compile 'com.squareup.retrofit2:retrofit:2.2.0' compile 'com.squareup.okhttp3:okhttp:3.4.1' compile 'com.squareup.retrofit2:converter-gson:2.0.2' Network permissions: <uses-permission android:name="android.permission.INTERNET"/>     The second step: Create interf ...

Posted on Sun, 05 Jan 2020 15:59:51 -0800 by razorsedgeuk

Appreciation of Android wheel's Retrofit source code

Implementation of Service interface in Retrofit For custom Service classes: public interface GithubService { @GET("users/{user}/repos") MyCall<String> listRepos(@Path("user") String user); } When used: GithubService githubService = retrofit.create(GithubService.class); MyCall<String> call = githubSer ...

Posted on Thu, 02 Jan 2020 11:20:01 -0800 by Vball

Retrofit parsing network json

Don't bother a lot of nonsense, finish saying to achieve the final goal, directly enter the main operation, directly go to the code, see the use method   To achieve the goal: use Retrofit to analyze network json, and put RecyclerView in   The first step is to write the layout file and item, which I use here RecyclerView I d ...

Posted on Sat, 28 Dec 2019 09:33:52 -0800 by Richardtagger

Android's adaptation to Retrofit's BaseUrl

Android's adaptation to Retrofit's BaseUrl In a project, you may encounter interfaces that call different domain names or ports, but Retrofit's setting method for BaseUrl does not provide adaptation for different domain names. Our network calls are generally single examples, so it is impossible to build an instance for each do ...

Posted on Wed, 25 Dec 2019 13:59:00 -0800 by fxb9500

Examples of Retrofit and Rxjava

Environmental configuration Add the following dependencies under build.gradle of Module:app, and then sync now. Some of the following dependencies are not used. There is no mistake in adding them temporarily. dependencies { implementation 'com.squareup.retrofit2:retrofit:2.4.0' implementation 'com.squareup.retrofit2:a ...

Posted on Mon, 23 Dec 2019 08:37:01 -0800 by Jocke

Spring Cloud gateway seven Sentinel annotation usage

Sentinel Annotation Support @SentinelResource is used to define resources and provides optional exception handling and fallback configuration items.The @SentinelResource annotation contains the following properties: value: Resource name, required (cannot be empty) entryType:entry type, optional (default is EntryType.OUT) blockHandler / blockHa ...

Posted on Mon, 18 Nov 2019 16:54:00 -0800 by LMarie

day36 rx family barrel

brief introduction Rx(Reactive Extensions) is a library used to handle events and asynchronous tasks. It is implemented in many languages. RxJava is the implementation of Rx in Java. In short, RxJava is a library for handling asynchrony, which is basically based on the observer pattern. Through the me ...

Posted on Sat, 05 Oct 2019 13:06:57 -0700 by silent