Writing Appium tests with Kotlin
Kotlin Is a modern programming language that focuses on simplicity, clarity and code security. Google officially adopted Kotlin by adding support to Android Studio in 2017, and then announced it as the preferred language for Android developers on Google I/O 2019. Perhaps your Android application team has gradually added Kotlin code to your pr ...
Posted by varun_146100 on Tue, 04 Jan 2022 15:42:17 +0100
Implementation of Android fuzzy search box
1. Preface
Recently, the fuzzy search function in the project is very difficult at first, but it's nothing to think about it carefully, because the specific fuzzy search part is the interface provided by the back end, and what we need to do is to perform the search function once when the content of the search box changes.
2. Renderings
...
Posted by Twysted on Tue, 04 Jan 2022 14:31:20 +0100
Binder overview to quickly understand binder system
prefaceAs we all know, Binder is the main interprocess communication suite in the Android system. More specifically, many articles call it Binder driver. Why is it a driver? What is the driver? Let's uncover it step by step from the Binder in the kernel from the bottom up. This article focuses on helping readers have a brief understanding of Bi ...
Posted by loquaci on Tue, 04 Jan 2022 12:28:09 +0100
android_ jetpack_ Property (icon, text) setting of bottomnavigationview
Bottom navigation bar
The bottom navigation bar is commonly used. At present, almost all commonly used apps use the bottom navigation bar to classify the content. The implementation of the bottom navigation bar is also relatively simple, which can be implemented in a user-defined way. Usually, each item is composed of an icon and title, and th ...
Posted by wezalmighty on Tue, 04 Jan 2022 05:34:59 +0100
Interviewer: what is the general principle of the Handler mechanism?
prefaceThis article is not written to analyze how the Handler is used. The purpose is to look at the evolution of the Handler from a design point of view and why there are four classes: looper, messagequeue, Handler and message.I The nature of thread communication?The main difference between threads and processes is that threads share memory. I ...
Posted by paolo on Tue, 04 Jan 2022 04:51:19 +0100
Bid farewell to KAPT and use KSP to speed up Android compilation
1, KSPWhen developing Android applications, many people make complaints about Kotlin slow, and KAPT is one of the culprits who slow down compilation. We know that many Android libraries use annotations to simplify template code, such as Room, Dagger, Retrofit, etc. by default, kotlin uses kapt to process annotations. Kapt has no special annotat ...
Posted by manmadareddy on Tue, 04 Jan 2022 03:17:03 +0100
Android - GT tutorial (total)
Article introduction:
GT package that you can't put down in development. Follow the GSLS official website to view more source code (✿ ゚ ▽ ゚) toolkit.
All articles are compiled so that readers can directly read and completely copy and paste. Among them, complex or more source codes will have source codes and paste them on the github website.
...
Posted by shlumph on Tue, 04 Jan 2022 02:06:39 +0100
Android tip 2
[27.EditText soft keyboard]
EditText does not pop up the soft keyboard initially, only the cursor is displayed, click and then pop up Solution 1: Set in the activity property of the manifest
android:windowSoftInputMode="stateHidden"
Solution 2:
InputMethodManager inputMethodManager = (InputMethodManager)this.getSystemService(Context.IN ...
Posted by valoukh on Mon, 03 Jan 2022 19:43:32 +0100
Android database SQLite
The Android system actually has a built-in database. SQLite is a lightweight relational database. It has very fast operation speed and occupies very few resources. It usually only needs a few hundred KB of memory, so it is especially suitable for mobile devices. SQLite not only supports the standard SQL syntax, but also follows the ACID t ...
Posted by Digwood on Mon, 03 Jan 2022 19:36:29 +0100
Actual combat - an implementation of low memory performance optimization of Android system
preface System performance optimization is a huge topic. It can be said that most of our work in Freamwork is held around this point. In this article, we have done some work in AMS under the condition of low memory. By killing some unnecessary processes, users can ensure the smooth use of the system without jamming.
Low memory performance opti ...
Posted by artfuldrone on Mon, 03 Jan 2022 18:40:41 +0100