A Preliminary Study on the Source Code of Android Event Distribution Mechanism Based on Hardware
First of all, I read a lot of articles on the Internet, including Guo Linda's articles. They all analyzed the event distribution of ViewGroup and View perfectly. But still confused: how did the Touch Event ViewGroup capture it? The gods all said that Activity,Window,ViewRoot and so on were all involved in the event distribution. How did they p ...
Posted by bundred on Sat, 01 Jun 2019 20:25:05 +0200
2019-05-31 Java Learning Diary day21 IO Stream Character Stream
IO
Character stream
Character streams are IO streams that can read and write characters directly
When character stream reads characters, it reads byte data first and then converts them to characters. If character is written, it needs to be converted to bytes before writing out.
FileReader
The read () method of the FileReader class can be r ...
Posted by gausie on Sat, 01 Jun 2019 01:55:50 +0200
Android Window Management Analysis (2): Windows Addition Process for Windows Manager Service Window Management
Previous analysis has said that Windows Manager Service is only responsible for Window management, not for View drawing and layer mixing. This article will analyze how WMS manages windows in the end. When I first came into contact with Android, I felt that Activity seemed to be the encapsulated Window of Google. As long as APP started the new a ...
Posted by deano2010 on Thu, 30 May 2019 21:38:31 +0200
Event distribution mechanism
discuss Android Before the event delivery mechanism, it is important to identify the two basic control types of android: View and ViewGroup.
View is a common control, no sub-layout, such as Button, TextView. ViewGroup inherits from View;
ViewGroup control, with child controls, such as Linearlayout, Listview, etc.
There are three most ...
Posted by daloss on Wed, 29 May 2019 22:05:58 +0200
How to solve the problem that the download link of APP is blocked by Wechat
Through the sweep of Wechat to download, there will be a white screen situation, perhaps because of security considerations or other reasons, it is no longer possible to download the apk through the sweep of Wechat.
According to the ideas provided by netizens, this paper sorted out three schemes.
1. Developers applying for Tencent Open Platfor ...
Posted by calumstevens on Wed, 29 May 2019 13:24:41 +0200
Design Patterns (Builder Patterns) - Builder Patterns
1. definition
Separating the construction of a complex object from its representation enables the same construction process to create different representations.
2. introduction
The builder model belongs to the creation model.
Builder mode is mainly used to create complex objects, users can not care about its construction proce ...
Posted by deception54 on Wed, 29 May 2019 12:23:40 +0200
GMSSL is compiled under windows using vs2010
Introduction to GMSSL
Project Home Page: http://gmssl.org/
github: https://github.com/guanzhi/GmSSL
GMSSL windows + vs2010 compilation
Compile and install: http://gmssl.org/docs/install.html
Windows is compiled as follows:
Compilation error
1. base58.c error C2057: Constant expression should be entered The following errors were mad ...
Posted by kaisellgren on Wed, 29 May 2019 10:21:53 +0200
Process Dynamic Interception Injection API HOOK
Recently, I met a problem in my work. I need to judge the running state of the program through the program interface. At first, I thought it was very simple. It was not just a form control to get Button's status and Text. It happened that I did it last year. As the project delivery time approached, I was ready to start solving the problem. Sudd ...
Posted by ac1dsp3ctrum on Sat, 25 May 2019 23:55:16 +0200
JS namespace schema parsing
brief introduction
See such a question on the SF:
For example, for compelling reasons, several global functions need to be written. But I don't want to do that.
window.a = function(){}
window.b = function(){}
window.c = function(){}
What's a good way to write this question?
Answer:
If you use jQuery, you can write as follows
$.ex ...
Posted by nightowl on Thu, 23 May 2019 21:21:21 +0200
Realization of generating and scanning two-dimensional codes on ios by Cocos 2dx-lua
First of all, I support it. iOS The original method is implemented. However, the original method of scanning two-dimensional codes does not support the devices before IOS 7.0, so the original method of generating two-dimensional codes is implemented, while the scanning two-dimensional codes are implemented by zBar sdk (of course, the official z ...
Posted by jcleary on Tue, 21 May 2019 20:03:43 +0200