Look at layoutinflator, you may have a new understanding this time
This article is also published in my WeChat official account. It can scan the two-dimensional code at the bottom of the article or search for Guo Lin in WeChat.
Today, I don't want to talk about some new features and features of Android. I especially want to talk about this old topic: layoutinflator.
Now most of my articles are old Android. ...
Posted by tuneout on Tue, 14 Dec 2021 01:11:32 +0100
Three basic layout modes of Android
A rich interface consists of many controls, so how can we make each control orderly placed on the interface instead of messy, which needs to be realized with the help of layout
LinearLayout
LinearLayout, also known as linear layout, is a very common layout
android:orientation arrangement Arranged in vertical order
<LinearLayo ...
Posted by HAVOCWIZARD on Fri, 10 Dec 2021 17:35:21 +0100
[Kotlin beginner] function (method)
About the author: CSDN blog expert, Huawei cloud sharing expert certification
Series column: Kotlin beginner
Learning and communication: three people must have my teacher; Choose the good and follow it, and change the bad.
catalogue
function
Function header
Function parameters
Unit function
Nothing type
Function name in backquotes ...
Posted by alconebay on Tue, 07 Dec 2021 03:40:16 +0100
On the recording and playing process of audio in webrtc
preface
This article is based on the PineAppRtc project github.com/thfhongfeng...
In webrtc, the recording and playing of audio are encapsulated inside. Generally, we don't need to pay attention to it. We can use it directly.
But recently, there is a requirement to transmit our own data, so we need to expose these interfaces for use. So we n ...
Posted by snascendi on Sat, 27 Nov 2021 05:08:39 +0100
Kotlin - coprocessor and operator overloading, Java programmer autumn recruit three-sided ant gold suit
Kotlin files and classes do not have a one-to-one relationship Symbiont inherit Modifier Null pointer problem
text
Key and difficult points
Synergetic process
I've thought about it for a long time. There are a lot of contents on the official website, including basic knowledge, concepts, basic usage, stream operation, channel, excepti ...
Posted by aircooled57 on Sun, 21 Nov 2021 09:43:14 +0100
I still don't understand Android's touch feedback mechanism
Recommended by Haowen: Author: riane
Let's analyze in detail what our fingers have experienced from touching various views on the screen to the end of this click event.
Event type
There are three types of touch events:
int action = MotionEventCompat.getActionMasked(event);
switch(action) {
case MotionEvent.ACTION_DOWN:
...
Posted by ricta on Thu, 18 Nov 2021 14:22:33 +0100
Kotlin vocal | kotlin built-in agent
Agents can help you delegate tasks to other objects, resulting in better code reusability Our previous article Learn more. Kotlin not only allows you to easily implement agents through the by keyword, but also provides built-in agents such as lazy(), observable(), vetoable(), and notNull() in the standard library. Next, let's begin to underst ...
Posted by polandsprings on Tue, 16 Nov 2021 11:08:48 +0100
Introduction to Android | introduction to Kotlin collaboration
Android officials recommend using concurrency to deal with asynchronous problems.Characteristics of collaborative process:Lightweight: multiple coroutines can be run on a single thread. The process supports suspension, which will not block the thread running the process. Suspending saves memory than blocking and supports multiple parallel opera ...
Posted by lead2gold on Fri, 12 Nov 2021 18:25:49 +0100
Android - Kotiln basics tutorial
preface
In the previous article, we mainly explained the knowledge points corresponding to Kotlin string, number type and standard library function. In this article, we will explain the knowledge points related to Kotlin set.
1. List set
1.1 read only set
val list = listOf("json", "jack", "jacky")
fun main{
//Read only list; Cannot writ ...
Posted by Julian Pedley on Thu, 11 Nov 2021 04:30:35 +0100
Kotlin learning notes - interfaces, abstract classes, generics, extensions, set operators, interoperability with Java, singletons
Note: the coding tool is IntelliJ
catalogue
Interface
Example
Define variables
Example
Variable defaults
abstract class
Example
Implementation interface
generic paradigm
Generic class
Generic Functions
Generic implementation of custom map transformation
Joint generic function implementation of generic classes
Generic function im ...
Posted by prcollin on Sun, 07 Nov 2021 21:49:51 +0100