WebView independent process scheme - Secondary encapsulation based on Tencent X5

Preface overview Almost all apps use WebView components. It is also an option to use WebView to host business functions. After all, there is no need to wait for the review of the application market to improve the timeliness of business launch and bug repair. However, WebView loading business functions also has great defects, poor experienc ...

Posted by Daleeburg on Tue, 28 Dec 2021 18:20:22 +0100

Android App version detection, download and install new version apk

background Many Android applications have built-in new version detection and online update functions. This simple function mainly includes three links: detection, download and installation. The demonstration results are as follows: After the download is completed, the apk will be opened automatically, and the installation interface will be sk ...

Posted by callesson on Tue, 28 Dec 2021 15:38:47 +0100

Android custom payment password input box, cursor problem summary!

prefaceIn the project, we often inherit AppCompatEditText or EditText custom verification code input box to replace the system input box to meet UI design requirements, such as:Linear input boxSquare input box| |This paper mainly analyzes the cursor problem often ignored in the process of user-defined verification code input box and a personal ...

Posted by waygood on Tue, 28 Dec 2021 13:16:25 +0100

Composite multiplatform supporting PC, Web and Android enters Alpha version

The release of Compose Multiplatform marks a new step forward in developing unified UI support using Kotlin! Based on Google released Jetpack Compose Android 1.0 stable Premise: Compose for Desktop and Compose for Web have been upgraded to "Alpha" version. Their version control is now consistent under Compose Multiplatform, so that ...

Posted by rbeschizza on Tue, 28 Dec 2021 10:41:24 +0100

Cool 3D sphere text cloud effect!

causeI saw a h5 dazzling 3D sphere text effect on the Internet a few days ago. I felt it was very interesting. I was ready to reproduce it on the Android side. Less nonsense, let's see the effect first (gif looks like some cards, but it won't)Core principlesText coordinatesThe first thing to do is to determine a coordinate for each text. Androi ...

Posted by indigo2k on Tue, 28 Dec 2021 09:59:36 +0100

Use of Android Jetpack WorkManager

The official website link uses WorkManager to schedule tasks | Android Developers | Android Developers https://developer.android.google.cn/topic/libraries/architecture/workmanager WorkManager is an API that allows you to easily schedule reliable asynchronous tasks that should run even after exiting the application or restarting the device. Wo ...

Posted by mr02077 on Tue, 28 Dec 2021 08:26:52 +0100

Android automation interactive practice

Li Tao He joined qunar.com in March 2015 as a client development engineer and once worked as a hotel business and self-service check-in and check-out project development. Now I am responsible for the development and maintenance of International Hotel capture system. Android automatic interaction can replace manual completion o ...

Posted by DepretioN on Tue, 28 Dec 2021 04:41:01 +0100

Android advanced light learning record -- an attempt of ButterKnife, an annotation and dependency injection framework

⚠️ The module created is a java module rather than an Android Library. If the latter is created, AbstractProcessor cannot be used   According to the book, I want to imitate butterknife myself The final project structure is shown in the figure above. Among them, annotations is a Java library with different annotations, process is an annot ...

Posted by Debbie-Leigh on Mon, 27 Dec 2021 21:11:20 +0100

Common design patterns for Android Development

In the book design patterns: the basis of reusable object-oriented software published by GoF, 23 design patterns are recorded. The essence of these design patterns is the understanding of encapsulation, inheritance and polymorphism of object-oriented design. There are 8 design patterns used in app development. Singleton mode Singleton pattern ...

Posted by PHP Newb on Mon, 27 Dec 2021 00:01:44 +0100

Improper customization of View causes ViewBinding to use Crash:Missing required view with ID

Today I encountered a Crash:java while using ViewBinding. Lang.NullPointerException: Missing required View with ID, found to be related to custom View... 1. Background When using ViewBinding recently, you encountered such an error: E AndroidRuntime: FATAL EXCEPTION: main E AndroidRuntime: Process: me.hjhl.app, PID: 10740 E AndroidRuntime: ...

Posted by cosminb on Sun, 26 Dec 2021 23:55:15 +0100