Input box for Android development EditText

Now let's briefly introduce the technical points: 1. How to use fillet input box and button background 2. How to realize the vertical line behind "mobile number" and "password" 3. How to nest the layout of input boxes 4. How to listen to the input events of the input box and the dyna ...

Posted on Wed, 17 Jun 2020 22:12:59 -0400 by robinjohn

Waveform custom control: measurement width and height of principle analysis

Previous This paper explains the initialization steps of custom control, and the width and height measurement of custom control. Override onMeasure method We get the relevant parameters from the layout file. Now we need to measure the width and height of this control. Rewrite the following method. @Ov ...

Posted on Wed, 17 Jun 2020 02:06:34 -0400 by AtomicRax

[Chapter 1 - knowledge] 2. Performance optimization - Bootchart analysis of Android 7.1 Bug

The author of the original text: a detailed account of the past and the future Article link: link Article catalog What is Bootchart What is it in Android Google introduction Google translation in Chinese Bug solution There is only one truth! What is Bootchart Bootchart is an open source softwa ...

Posted on Tue, 16 Jun 2020 22:35:13 -0400 by pointsplat

Innovation training blog (17) - ListView in Kotlin is highly adaptive and the list of different Item types is shared

Highly adaptive ListView is a very common part of Android development, and it is used in all kinds of APP, whether it is QQ's chat list or WeChat's official account list. In practice, we have encountered such a problem: Maybe I want the ListView to be nested in the ScrollView, and there are many o ...

Posted on Mon, 15 Jun 2020 23:50:55 -0400 by someone2088

H5+ app Vue calls third-party applications, if no installation jumps to app market details

1. Call a third-party application to determine if it is installed plus.runtime.isApplicationExist({pname:pname,action:action}) pname is the Android application package name, action is the URL Scheme when ios is called, returns boolean 2. Determine if the current device is Android or ios plus.os.n ...

Posted on Mon, 15 Jun 2020 21:47:00 -0400 by jeet_0077

Android Q graphics system uses pure native API to draw a window

This article draws a window according to the previous analysis and implements it with the pure native API. The native API here is not ndk, but a native layer function, which needs to be implemented in the AOSP compilation environment. First, create the drawWindowTest test directory in the / frameworks/n ...

Posted on Mon, 15 Jun 2020 01:58:37 -0400 by akumakeenta

Add jni -------- static registration to the latest as project in 2020

Step 1: import static code block into so Library static { System.loadLibrary("native-lib"); } Step 2: write external functions public native String getString(); //native stands for c\c + + implementation Step 3: generate function header with javah Enter the src/main/java directory of the pr ...

Posted on Mon, 15 Jun 2020 00:41:14 -0400 by TropicalBeach

Should an experienced Android learn to be a superRecyclerView.Adapter

Preface Five or six years in a flash, time is running out, can't help exclamating: once geometrically, when we were obsessed with the framework, we had to find a framework for whatever we need. After a while, we found many problems, and sometimes we had to use it. Should we be left and right by others?The answer is No, or try to improve your ar ...

Posted on Sun, 14 Jun 2020 12:44:30 -0400 by szym9341

Android architecture component -- ViewBinding learning notes

Android architecture components – ViewBinding learning notes 1. Problems solved The purpose of ViewBinding is to reduce the use of template code findViewById(int), improve development efficiency, and simplify the code of Activity and Fragment. 2. Using ViewBinding The use of ViewBinding req ...

Posted on Sun, 14 Jun 2020 04:40:48 -0400 by Wes1890

Android system startup process 2 -- Analysis of Zygote process startup process

Related articles Android system startup process 1 -- analyze init process startup process zygote process startup process In Android system, all application processes and system service processes system server are generated by the zygote process, which may be why we call it zygote. Because zygote ...

Posted on Fri, 12 Jun 2020 05:43:17 -0400 by bmarinho