Android plug-in development guide -- Practice imitation cool dog music home page (custom ImageView control)
1. Preface
The proposed implementation effect part is the song list part in the figure below, that is, the part framed by the red line in the figure. In order to facilitate the implementation of RecyclerView here, for the square picture display control required in the figure, we will consider using a custom ImageView.
2. Basic environmen ...
Posted on Thu, 11 Nov 2021 03:24:03 -0500 by Zyx
Marriage and dating source code, to achieve a plug-in transparent background
Why did you write this article
The reason why I wrote this article on modifying the transparent background of the source code of marriage and dating is because I changed the official plug-in WebView of fluent_ flutter. Flutter's official plug-ins are all in one gitHub warehouse The databases maintained on the are related to each other. [see f ...
Posted on Wed, 10 Nov 2021 17:49:06 -0500 by coreycollins
Kotlin process control statement
Article structure:
Branch statement (if, when)Circular statements (for, while)Jump statements (break, continue, return, label, throw)
Branch statement (if, when)
if expression
In kotlin, if is an expression that returns a value
The if branch can be a code block, and the last expression is the value of the block (the return value of the la ...
Posted on Tue, 09 Nov 2021 20:39:04 -0500 by MCP
Android - Kotiln basics tutorial
preface
In the last article, I mainly explored Kotlin and found that it is obviously different from Java. In this article, we will focus on the Null and exception corresponding to Kotlin.
1. Null type
As shown in the figure
When we define variables, if we do not assign initial values, the compiler will directly prompt syntax errors! When ...
Posted on Tue, 09 Nov 2021 06:13:28 -0500 by horstuff
Animation and transition, adding entry animation to ViewGroup, overview of LayoutAnimation
Android animation and overview mainly covers the following contents:
Animation and transition (I). Overview and use of view animation Animation and transition (II). Advanced view Animation: extend the definition of animation Animation and transition (III), interpolator and estimator overview and use Animation and transition (IV). Use Layout ...
Posted on Mon, 08 Nov 2021 15:49:19 -0500 by tdeez173
OkHttp source code analysis
The source code of this article is okhttp: version 4.9.0.
implementation("com.squareup.okhttp3:okhttp:4.9.0")
GitHub address
Basic Usage
After creating the request Request, you need to create a RealCall object using the newCall() method of OkHttpClient, then call execute() to initiate synchronous requests or call enqueue() to initiate asy ...
Posted on Sun, 07 Nov 2021 17:26:19 -0500 by soshea
What if there are too few JetPack Compose theme colors?
Author: Petterp
introduction
The official version of JetPack Compose has been released for several months. During this period, in addition to business-related requirements, I also started the landing experiment of Compose in the actual project, because once I want to access the current project, the problems encountered are actually far grea ...
Posted on Sun, 07 Nov 2021 15:37:52 -0500 by VinnyWolf
[Android]APP multi domain name service high availability scheme
Responsible for the company's basic data scanning and collection The availability of this part to the system is basically 100% Therefore, many highly available schemes have been made
Pre preparation
Before implementing the high availability of APP, we need to prepare:
1. Multiple downgrades of core domain names [one active and multiple sta ...
Posted on Sat, 06 Nov 2021 17:46:27 -0400 by markjoe
kotlin - classes and objects
kotlin - classes and objects
Properties of class
Class attribute is actually used to save the state data of the class object. If no modifier is written in kotlin, the access permission of this attribute is public by default. Class does not require us to write setter and getter methods, except when customization is required.
class Person {
...
Posted on Sat, 06 Nov 2021 12:58:01 -0400 by itsgood
okhttp -- 2. Interceptor principle
It is strongly recommended to read:
Responsibility chain model
okhttp basic usage and summary (todo:)
Description of interceptors on the official website
(explain the use and difference between ordinary interceptor and network interceptor)
Interceptor introduction
As can be seen from the figure below, the core of okhttp is around interceptors.
...
Posted on Sat, 06 Nov 2021 07:52:37 -0400 by samuraitux