Kotlin Vocabulary | data class

A baby milk dog will have a name, breed and a bunch of lovely characteristics as its attributes. If you model it as a class and only use it to hold these attribute data, you should use the data class. When using data classes, the compiler will automatically generate toString(), equals() and hashCode() functions for you, and provide them out o ...

Added by artweb on Sat, 13 Nov 2021 01:00:04 +0200

You must know the basics of advanced UI growth View

prefaceView can be said to be a role used every day in daily development. Although view does not belong to the four components, its role and importance can not be underestimated. This type of article is intended to write a series to provide a way for self review or novice learning.View BasicsThis article mainly introduces some basic knowledge o ...

Added by Karl33to on Sat, 13 Nov 2021 00:28:05 +0200

Android Handler running process source code analysis

HandleroutlineHandler is used for message passing between threads. It can switch tasks in one thread to another thread for execution. The target thread of the switch is consistent with the thread of the Looper held inside the handler. If the Looper is not set manually when initializing the handler, the handler will obtain and hold the Looper of ...

Added by liljester on Fri, 12 Nov 2021 22:48:43 +0200

Android - Kotiln basics tutorial

preface In the previous article, we mainly explained Kotlin's knowledge points related to sets. In this article, we will explain Kotlin's objects in detail! 1. Object 1.1 example 1 (no constructor) class Player { //Analysis point 1 var name = "abc" get() = field.capitalize() set(value) { field = value.trim() ...

Added by ScottCFR on Fri, 12 Nov 2021 09:23:33 +0200

Basic use of MMKV

summary           Mmkv is a key value component based on mmap memory mapping. The underlying serialization / deserialization is implemented by protobuf, with high performance and strong stability. It has been used on wechat since mid-2015, and its performance and stability have been verified over ti ...

Added by levi_501_dehaan on Fri, 12 Nov 2021 02:17:33 +0200

Android finds the most recent control that can get focus, and does not indicate the search of the next search property of the control

This article undertakes Android finds the nearest control that can get focus (I) findNextFocus() step 3 The relevant codes are excerpted as follows: focusables.clear(); effectiveRoot.addFocusables(focusables, direction); if (!focusables.isEmpty()) { next = findNextFocus(effectiveRoot, focus ...

Added by westonlea7 on Thu, 11 Nov 2021 19:20:56 +0200

Detailed explanation of player dynamic process of ijkplayer code walkthrough 2

This section is< < detailed explanation of player startup process of ijkplayer code reading > >Continuation of. We are looking at how the ijkplayer workflow works. We only focus on reading part 2.5, 2.6 and 2.8 of the code Clear ffplay workflow. Part 2.0 of the code is mainly ffplay control interface thread, and the implementation ...

Added by JamieWAstin on Thu, 11 Nov 2021 11:21:26 +0200

Android application life cycle to achieve a simple stopwatch App

1. Functional analysis 1.1 stopwatch function interface 1.2 App structure 1 Activity: MainActivity1 Layout: activity_main.xml 2. Development view layout 2.1,activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" ...

Added by zed420 on Thu, 11 Nov 2021 09:11:23 +0200

[Android] record the idea of modifying the position of the primary input method

The input method is dialog or full screen dialog and will not be disassigned. The display and hide system call methods are showWindow(true) and hide(). The following is the creation of the input method Window. SoftInputWindow inherits dialog. Needless to say, mWindow = new SoftInputWindow(this, "InputMethod", mTheme, null, null, mDispatcherSta ...

Added by stoop on Wed, 10 Nov 2021 14:49:33 +0200

Android advanced decryption reading notes -- understanding ActivityManagerService

Android 7.0 and Android 8.0 have great differences in the processing of AMS related parts AMS family for Android 7.0 There are three main categories ActivityManager Activity manager is a class associated with AMS. It mainly manages running activities. These management tasks are not handled by ActivityManager, but by AMs Activit ...

Added by not_john on Wed, 10 Nov 2021 13:21:22 +0200