Analysis of Android Event Distribution Source Code

I have known the event distribution mechanism before. I have a general impression of the whole process. Now I have free time. It's time to analyze the whole process to consolidate the relevant knowledge. About the time distribution mechanism, if you leave ListView and other up-and-down sliding controls in ViewPager, you will be very impressed ...

Posted by bob1660 on Mon, 20 May 2019 03:29:33 +0200

Building Linux Root File System

Building Linux Root File System 1. Basic knowledge 1.1. Basic concepts In computing, a file system or file system controls how data is stored and retrieved. Without a file system, information placed in a storage medium would be a large body of data with no way to tell where one piece of information stops PS and the next be ...

Posted by fgm on Sun, 19 May 2019 21:28:46 +0200

Replace System.IO.Directory with WinAPI

Catalog introduce Use code How does the code work Download source code - 22.6 KB introduce Recently, I was working on a project that needed to read the contents of Windows directories, so I used the EnumerateDirectories, EnumerateFiles and EnumerateFileSystem Entries methods in the System.IO.Directory class provided by. ...

Posted by johnny on Sun, 19 May 2019 21:05:21 +0200

Android Design Patterns - Builder Patterns

Preface Android Design Patterns Series: Welcome your attention and keep updating: 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 t ...

Posted by dhe on Sun, 19 May 2019 04:22:01 +0200

Analysis of DroidPlugin Principle

Analysis of DroidPlugin Principle From the point of system design, the logical entity of components and windows exists in system services, such as Activity, whose logical control body is in AMS. For windows, the logical control body is in WMS. android places the logical principal in the system service, so that the system can h ...

Posted by Weirdan on Sat, 18 May 2019 23:44:23 +0200

Android mimics QQ login interface to solve soft keyboard occlusion problem

Original address: https://www.jianshu.com/p/9eb57a8ff5e5 The Android software disk pop-up may obscure some controls on the interface.EditText is generally not blocked when windowSoftInputMode is adjustPan, but if there is a login button below EditText, it may be blocked, but sometimes we want users to click the login button directly after th ...

Posted by migmedia on Sat, 18 May 2019 17:50:10 +0200

Detailed parsing of I/O operations

I/O operations Article Directory I/O operations 1: File operation 1. Determine whether the file exists 2. Determine whether it is a file 3. Create and delete files 4. Create a directory 2: I\O Flow Operation 1. (1) OutputStream with byte streams 1. (2) Write using a character output stream (Writer) 2. Read data using by ...

Posted by illzz on Sat, 18 May 2019 13:23:52 +0200

Android goes deep into four components (7) Android 8.0 Root Activity Startup Process (later)

Related articles Android goes deep into four major component series Android System Startup Series Android application process series Android in-depth analysis of AMS series Preface I wrote it a few months ago. Android goes deep into four components (1) Application startup process (previous part) and Android goes deep into four components ( ...

Posted by HSKrustofsky on Sat, 18 May 2019 07:02:46 +0200

C Language Project [1] | ——— |Snake Snake Snake Source + Explanation

Retro Snaker PS: This snake is achieved by using an array of structs! Snake Eager Project Development Platform: VS2017+ Graphics Library 1. Add Graphics Library in VS2017 as follows How do I add a graphics.h header file in VS2017? 2. Framework of snakes 1. Snake Properties Snake properties include length of snake + coo ...

Posted by daniel_grant on Sat, 18 May 2019 06:12:04 +0200

Android TV shutdown/restart logic simplified by pressing Power key for a long time, say goodbye to long wait

The reason for writing this article: the project encountered problems, in an apk interface long press the power button to choose shutdown or restart, apk will appear restart phenomenon. After carefully studying the relevant source code of shutdown/restart, some logic was modified to solve the problem. Let's use a blog to record ...

Posted by driver on Sat, 18 May 2019 02:04:32 +0200