This section continues with some of the more advanced aspects of Kotlin: Kotlin Extensions. Learning objectives To provide the ease of use of architecture to...
Collections are used in many scenarios, and the Kotlin Standard Library provides many excellent utility functions for collections. Kotlin offers two types of collections based...
So we're going to start with an XML file, and then we're going to add a GridView to that file where app:layout_constraintHeight_max="300dp" is the maximum...
Why do high-order functions need coroutines To illustrate the most common scenario in asynchronous programming: A background thread executes A task A, and the next...
R8 is Android's default application reductor, which can reduce the size of Android apps by removing unused code and optimizing the rest of the code....
The KotlinConf conference announced the RC version of Kotlin1.2 and announced that Kotlin/Native is now supported for iOS and Web application development. After The release...
Kotlin Basics This article focuses on the points where Kotlin differs from Java. Kotlin is statically typed, and all expressions are typed at compile time....
Today, I will present a comprehensive and detailed introduction to Kotlin, including defining features, configuring usage, and getting started syntax. I hope you will enjoy...
KotlinDSL takes Kotlin's syntactic sugar to its full potential. It's delicious, beautiful, and fun, but an obsession with syntactic sugar only scratches the surface of...
This article introduces the NON-invasive initialization of SDK and the acquisition of Application, that is, the business side does not need to manually call the...
This chapter mainly explains the exception generation process and processing of Kotlin coroutine. By throwing an exception, the coroutine step by step exception generation process....
In the last article in this series, we learned about Kotlin generics. Using generics makes our code reusable and avoids type conversion exceptions. For those...
Today, I'm going to focus on all things kotlin classes, including the following: for constructors, a kotlin class can have one primary constructor & multiple...
1. How important are higher-order functions? Higher order functions play an important role in Kotlin. It is the cornerstone of Kotlin functional programming, and is...
What is the difference between the job returned by launch and the CoroutineContext[job] passed in? What's the difference between a coroutineScope and a coroutineScope? So...
Reference documents: https://www.jianshu.com/u/a324daa6fa19 explaining Kotlin coroutines mechanism What is coroutines coroutines usage coroutines startup coroutines hangs, recovery principle of reverse analysis of 1. What is...
Gradle-wrapper configuration gradle-wrapper is an excellent building system tool.Gradle DSLS are implemented in Groovy, and you can easily control these DSLS with code to achieve...