Writing gradle scripts using Kotlin

Writing gradle scripts using Kotlin summary IDE support Build importSyntax highlighting 1Semantic editor 2IntelliJ IDEA✓✓✓Android Studio✓✓✓Eclipse IDE✓✓✖CLion✓✓✖Apache NetBeans✓✓✖Visual Studio Code (LSP)✓✓✖Visual Studio✓✖✖ Kotlin syntax highlighting in Gradle Kotlin DSL scriptsGradle Kotlin DSL scripts supports code completion, navigatio ...

Added by npereira on Thu, 24 Feb 2022 17:17:49 +0200

Room realizes unified data management - Repo

Room realizes unified data management - Repo In the multi module environment, the data classes are written in one module separately, and the database can be accessed for addition, deletion, modification and query only by introducing them into other classes in use LitePal When using the framework, it is very convenient to find operations ...

Added by White_Coffee on Sat, 19 Feb 2022 18:51:49 +0200

Use Kotlin and CameraX to take photos without feeling on the desktop and screen (with source code)

Android uses Kotlin and CameraX to take photos without feeling on the desktop and screen (with source code) Requirements: realize a silent photographing without displaying the interface, and can also switch the front and rear cameras and take photos through the volume keys in the rest screen state. After the photos are successfully saved, ther ...

Added by parms on Sat, 19 Feb 2022 16:17:13 +0200

Concept and principle of collaborative process, etc

Concept and principle of collaborative process, etc Concept of collaborative process Coroutine (English: coroutine) is a kind of component of computer program, which promotes * * * collaborative * * * multitasking subroutine, and allows execution to be suspended and restored. English co routine, CO collaboration, routine (another name for com ...

Added by Royalmike on Sat, 19 Feb 2022 06:34:40 +0200

Introduction to the basics of Kotlin language: Lambda expression

What is a Lambda expression?Lambda expressions are actually anonymous functions. In fact, a function is a function. An anonymous function is an anonymous function code. In Kotlin, function also appears as a type. Although in the current version, the flexibility of function type is not as flexible as Python, it can also be assigned and passed, w ...

Added by cdoyle on Fri, 18 Feb 2022 10:48:12 +0200

Channel channel in Kotlin

select multiplexing in channel In the data communication system or computer network system, the bandwidth or capacity of the transmission medium is often greater than the demand for transmitting a single signal. In order to make effective use of the communication line, one channel is expected to transmit multiple signals at the same time ...

Added by seodevhead on Fri, 18 Feb 2022 01:55:57 +0200

Face + + realizes face detection in the way of flow

The following steps can be used for face detection:Load the model file and initialize the interfaceObtain authorizationCall face detection to obtain key pointsNotification draw keyRelease interface resourcesSteps 3 and 4 here are repeated after receiving the camera data. We can abstract these steps into data flow for encapsulation. Face + + con ...

Added by kaser on Tue, 15 Feb 2022 15:04:40 +0200

Kotlin grammar manual

Kotlin grammar manual (III) When using kotlin, because the mastery is not reliable enough, it is still a habit of Java programming, which wastes the language features, convenience and indirectness provided by kotlin. When reading some Android open source libraries, it is difficult to read because many of them are written by kotlin syntax, and ...

Added by alsaffar on Tue, 15 Feb 2022 03:36:42 +0200

Custom View incomplete to be continued

Custom View Purple wish_ The world is as good as possible. A teenager who is committed to internship in the factory during the sophomore summer vacation wrote for the first time on February 13, 2022 What is a custom View What is the difference between a custom View and a custom ViewGroup? Custom views generally need to implement t ...

Added by hedgehog90 on Sun, 13 Feb 2022 08:34:48 +0200

Sorting out kotlin collaborative process knowledge points

preface The term coroutines was put forward in 1958. Coprocessing was invented and used to build assemblers, which shows that coprocessing is a programming idea and is not limited to a specific language. The author simply passed through the document and recorded some things. There are some things that are not commonly used that have not been s ...

Added by cdwhalley.com on Fri, 11 Feb 2022 08:24:01 +0200