Android view binding
The view binding function can be enabled by module. To enable view binding in a module, add the viewBinding element to its build.gradle file, as shown in the following example
android {
viewBinding {
enabled = true
}
}
If you want to ignore a layout file when generating binding classes, add the tools:viewBindingIgnore="tr ...
Added by troy_mccormick on Mon, 20 Sep 2021 10:29:37 +0300
Sand Grains III Building My Android Skill Tower: View Workflow
View Workflow
1. Customize View process
Start->Constructor-> onMeasure() ->onSIzeChanged() ->onLaout() ->onDraw() ->View State Change->Finish
Constructor: View InitializationonMeasure: Measure View sizeonSizeChanged: Determine View SizeonLayout: Determine sub View layoutonDraw: Actual drawing content
2.MeasureSpec ...
Added by jponte on Sun, 19 Sep 2021 12:55:44 +0300
PopupWindow touch event transparent transmission scheme
background
Sometimes when we pop up a PopupWindow, there is a requirement:
Click the clickable control on the pop-up window to execute the click logic of the control; When the finger touches the blank area on the pop-up window or the non clickable control, the event will be transmitted to the view under the pop-up window, that is, it will n ...
Added by speps on Sun, 19 Sep 2021 12:09:45 +0300
[bytecode stake] Android signature mechanism (generate Android signature file | analyze signature file | function of two passwords in signature file | three signature methods)
1, Android signature mechanism
The APK file signature is to ensure the authenticity of the APK source and that the APK file has not been modified;
APK signature is based on Hash hash algorithm;
Hash hash algorithm features:
UniquenessFixed lengthIrreversible
Common Hash three column algorithms:
SHA-1 algorithm: secure ha ...
Added by arunkar on Tue, 14 Sep 2021 23:04:03 +0300
Glide source code taught me the usage of abstract factory pattern
Key points of text objectives
In daily development work, the most important understanding of the Interface for new children's shoes in the workplace is that it can be used for asynchronous communication and data callback. Today, I want to introduce today's topic the usage of abstract factory pattern in combination with the Interface usage foun ...
Added by IOAF on Mon, 13 Sep 2021 02:20:21 +0300
Application and principle analysis of ThreadLocal
Function and principle of ThreadLocal
We know that Java multithreading has security problems. The main reason is that multithreading accesses a shared data at the same time. Therefore, we have two main ideas to solve the multithreading problem:
1. Lock the shared data
2. Avoid multi-threaded operation of the same shared data
Idea 1 is a com ...
Added by Dave96 on Sun, 12 Sep 2021 23:36:27 +0300
Android advanced road - some chores about time
Last year, there was a need to synchronize the time of the two terminals (client and server). The reason was that the system time of the two terminals was inconsistent, resulting in time difference after the implementation of the demand, resulting in business errors. Therefore, I took the time to sort out the knowledge related to time and date~ ...
Added by devarmagan on Sat, 11 Sep 2021 05:53:19 +0300
How to implement multilingual switching? How to find resources? How to adapt the multilingual keyboard?
1. Train of thought???
How to realize the function of multi language switching?
Firstly, the basic operation flow is: the user selects the language, the multilingual input method adapts according to the language, and the interface adapts according to the selected language. So the question is, how does the input method apk choose the correspon ...
Added by ChaosDream on Fri, 10 Sep 2021 03:41:11 +0300
Implementation of custom alarm clock developed by Android
Android custom settings alarm clock
Alarm time setting and display
The layout of the alarm clock is very simple, that is, a simple time setting, so you can write a simple layout button yourself, but please repeat it. In addition, use the time dialog TimePickerDialog to set the time, and use Calendar to obtain the time of the current syste ...
Added by Chris1981 on Fri, 10 Sep 2021 00:36:47 +0300
The Road of Lower Android Engineers
Life Cycle of Activity
Return to Stack Android is a taskTo manage an activity, a task is a collection of activities stored on a stack, also known as a return stack. A stack is a last-in-first-out data structure that, by default, places a new activity on the return stack and is at the top of the stack whenever we press the Back key or call ...
Added by phu on Thu, 09 Sep 2021 22:46:41 +0300