Threads are a love-hate relationship for Java folks. Threads can give us background operations that don't block the main thread, but with that comes issues...
A non-static inner class holds a reference to an external class, while a static inner class does not (the two can be considered unrelated). Non-static...
Kotlin extension functions/Attributes In Kotlin, you can extend the functionality of a class whose code cannot be modified. For example, we can not modify the...
When I first started using the Kotlin-Android-Extensions plug-in, I found it very comfortable. Instead of writing a cumbersome findViewByid method or introducing a ButterKnife reflection...
Recently, I took some time to imitate the animation effect _^_ of zhihu Daily's infinite rotation map and indicator switch. The code implementation is not...
In addition, you can use the catch operator to catch exceptions. The onCompletion operator was covered in the previous article Flow VS RxJava2. OnCompletion, however,...
What is an extension function is to extend new functionality without changing the original class in a word. Extension functions are not available in Java,...
In the recent componentized project migration, ARouter was used for service discovery and Activity jump between modules. Found that the official IDEA plugin from 19...
Because Kotlin's higher-order functions rely on the power of the compiler to translate the higher-order function syntax into Java code. The interior is actually implemented...
Brief description: It has been a long time since the release of Kotlin's practical content. During this period, I have been struggling with the plug-in...
Each enumeration constant exists only as a single instance, whereas subclasses of sealed classes can have multiple instances, and sealed classes can be said to...
This is the first article I participated in for beginners: Creating a Kotlin Project (IDEA edition). This article mainly records how to create a Kotlin...