Hardcore explains Jetpack's life cycle source code
Previous Hard core explains the use of life cycle of Jetpack This paper mainly introduces the significance of life cycle, basic and advanced use methods. Today, I don't want to talk much about it, just start rolling source code.
This article is based on the android_9.0.0_r45 Source code, all relevant source code including comments have been upl ...
Added by jeffwhite on Mon, 23 Dec 2019 23:58:25 +0200
Recursive cases of algorithms
Directory Introduction
01. What is recursion
02. Recursive Three Conditions
03. Fibonacci series
04. Find all files in the specified directory
05.Find 1+2+...+N and
06. Find a factorial of 100
07. Combination of Ordered Numbers
08. Find a multiplier
09. Backpack problem
10. Select a team
11. Hannotta Problem
12. Dichotomy Search
13. Watch out ...
Added by Corvin on Fri, 20 Dec 2019 03:56:33 +0200
Using canvas to realize the special effect of scraping card
Canvas is widely used. It can not only be used for drawing, making tables with ECharts, but also for playing games. But this time, I will share an application of using canvas to realize the special effect of scraping card
If you don't know the basics of canvas, please read my blog The beginning and introduction of canvas
Here's ...
Added by DBookatay on Wed, 18 Dec 2019 22:32:32 +0200
Android Studio development learning notes - 4
Recently, I haven't updated my blog for a long time. I've been busy with the studio project recently. By the way, I went out for a tour on national day to relax myself. It turns out that I was wrong. It's a distraction. It's a distraction. It's a person everywhere. I'll go out to play in the future. It's definitely not on holid ...
Added by Smeep on Sun, 15 Dec 2019 23:26:03 +0200
[C Chen] 201801013 operation of documents
1. The reading and writing of stream based text files is relatively simple for C ා. Generally speaking, the following five basic steps are required:
Create a file stream -- FileStream
Create reader or writer - StreamReader/StreamWriter
Perform read or write operations
Close reader or writer
Close file stream
2. BinaryReader an ...
Added by BinaryBird on Sun, 15 Dec 2019 19:30:03 +0200
Daily Record Internet Items - - 5(Zuul, Filter, Integrated Ribbon,Hystrix)
6. Zuul Gateway
6.1 Introduction
Zuul is the unified gateway to our services
Whether it's a request from a client (PC or mobile) or an internal call to a service.
All requests for services go through the Zuul gateway, which then implements authentication, dynamic routing, and so on.
6.2 Getting started with Zuul
Actual path: http://loc ...
Added by I WanT To Code PHP on Sat, 14 Dec 2019 09:50:30 +0200
[iOS] custom picture selector
demo:https://download.csdn.net/download/u012881779/10756087
This article is due to a question asked during the interview this summer. Have you customized photo selector? So I take the time to check the data and write a simple demo here.
Content:
1. Write a "custom picture selector".
2. The tool is used to cut the pict ...
Added by cheeks2k on Thu, 12 Dec 2019 22:24:05 +0200
Swift. Rotation animation, 100 lines of code
Effect:
Static: sub view s are arranged symmetrically, allowing dynamic addition, and 0 ~ 24 can be displayed well
When rotating: the center view does not move, the sub view rotates with the gesture, and the bottom sub view becomes larger and prominent
Implementation ideas:
All the controls are added to a large background v ...
Added by saeeddeep on Thu, 12 Dec 2019 21:45:07 +0200
Thread pool tool class encapsulation
Why to use thread pool
1. Frequent creation and destruction of threads consumes resources and time. In other words, thread pools can save resources and time.
2. Some threads take less time to execute tasks than to create and destroy threads.2. Function of thread pool:
Thread pool is a technology of creating threads in advance. B ...
Added by jkohns on Thu, 12 Dec 2019 21:17:57 +0200
Summary of CMakeLists.text used in NDK development
When we create a project, if Include C++ Support is checked, a CMakeLists.text will be generated in the same level directory of main
Let's introduce one by one
# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html
# Sets the minimum ...
Added by cheald on Thu, 12 Dec 2019 17:18:39 +0200