Navigation details about the implementation principle of Fragment
1. Preface
Fragment is a very old guy. Its first submission record is in 2010, and its latest record is on June 11, 2021. It is 11 years old, but it is young and shining in Jetpack. Navigation component is a jump component based on fragment, Google's single Activity project structure is one Activity and multiple fragment project structures. Ov ...
Posted by micksworld on Wed, 19 Jan 2022 06:17:26 +0100
Android foundation to advanced UI ImageView introduction + Example
ImageView
1, Inheritance of ImageView
As can be seen from the above figure, ImageView inherits from the View component, and its main function is to display any Drawable object. In addition, ImageView also derives three ImageButton, QuickContactBadge and ZoomButton components.
2, Common XML attributes supported by ImageView
3, ImageView ...
Posted by dta on Wed, 19 Jan 2022 05:32:37 +0100
Java arrays that can't be used, from bronze to King, fully parsed arrays, recommended collection!!!
Like and watch again to form a habit
catalogue
1. Definition of array
2. array traversal
3. Conversion between List and array
4. Possible problems
Regular benefits
1. Definition of array
Declare before use
Data type [] array name = new data type [length]; String[] arr3 = new String[5];
Data type array name [] = new data type ...
Posted by jmdavis on Wed, 19 Jan 2022 03:04:55 +0100
The scope function in Kotlin is enough
This article mainly shares the usage and differences of Kotlin's scope functions let, run, with, apply and also.
During the execution of scope function, a temporary scope is formed through lambda expression, which can reduce the number of some logic codes.
Context object: this or it
this
run, with, and apply reference context objects wi ...
Posted by BenS on Wed, 19 Jan 2022 01:50:47 +0100
Android Development - implement a dialer (view address book)
Then, the above implementation gradually expands several functions.
For example, you can view the address book and dial directly by clicking the contact entry.
In fact, functions are often accompanied by the mastery and use of components. When you master the use of all components, you can probably play flowers as you like.
The main technolog ...
Posted by ahsanmani on Tue, 18 Jan 2022 20:16:50 +0100
Core principles of spring cloud RPC: RxJava responsive programming framework, transformation operator
Conversion operator
This section introduces three conversion operators of RxJava: map operator, flatMap operator and scan operator.
map operator
The map operator accepts a conversion function, applies the conversion function to each element in the message flow ejected by Observable, and the converted result pops up from the message flow. The ...
Posted by diddy1234 on Tue, 18 Jan 2022 19:18:56 +0100
Android UID allocation, viewing and related knowledge
The meaning and function of uid pid gid gidsAllocation of UIDsView several ways to apply UIDObtain the package name through uid, and obtain uid through package name
All the sample code involved below is based on Android 8.1.
1. Meaning and function of uid PID GID GIDS
Uid: the uid in Android is used to identify an application. The uid is as ...
Posted by alsouno on Tue, 18 Jan 2022 19:13:40 +0100
Android acra monitoring error log reporting (acra version 4.9)
Use acra to monitor the crash log of app running and report it to the server for troubleshooting.
acra is an excellent open source log reporting project. It can intercept and collect error reporting information and report it to the server when your software crashes such as anr, cash and oom. It is similar to the error reporting collection sdk ...
Posted by ehask on Tue, 18 Jan 2022 17:56:12 +0100
[Android] Activity of the four components of Android
[Android] Activity of Android's four components (1)
preface
Activity is an important component in Android learning. If you want to systematically understand it, you can divide it into several parts. The content of this large chapter is about page Jump and data transfer between activities, followed by the explanation of the life cycle in activ ...
Posted by NoobPHP on Tue, 18 Jan 2022 15:39:44 +0100
Sorting out the basic syntax and idioms of Android development using Kotlin
Basic syntax and idioms of Android development using Kotlin
Since Google I/O in 2019, Kotlin has become the first choice for Android mobile development.
Android development with Kotlin can benefit from:
Less code and more readable. Spend less time writing code and understanding other people's code.Mature language and environment. Since i ...
Posted by jackthebookie on Tue, 18 Jan 2022 12:42:52 +0100