1. Dynamic method:
2. Static registration broadcast
3. Send and receive custom broadcasts
4. Cross program receive broadcast
There are two kinds of broadcasting, static broadcasting and dynamic broadcasting.
1. Dynamic method:
Rewrite the broadcast receiver to accept the broadcast and operate according to the received broa ...
Although MVVM architecture was also used in previous projects, I was not familiar with the whole MVVM architecture because I didn't build the overall framework myself, so I built and implemented the MVVM architecture myself this time.
The components used by MVVM architecture include ViewModel, LiveData, ViewBinding/DataBinding, etc. these comp ...
Posted by impulse() on Tue, 08 Mar 2022 12:51:33 +0100
🚪 1. Fragment report Gradle
Gradle - Module:
def fragment_version = "1.3.1"
😓: You see, this is not Android test or test, but debug. We don't have it! 🤗: haven't you? You have to mak ...
Posted by langer on Tue, 08 Mar 2022 05:33:34 +0100
The official has also changed this knowledge point twice
Bitmap can be said to be the most common memory consumer in Android. Many oom problems we encounter in the development process are caused by it. Google officials have also been iterating over its pixel memory management strategy. From Android 2.3.3 to 2.3-7.1 on the java heap, and back t ...
Posted by WBSKI on Tue, 08 Mar 2022 04:01:59 +0100
The code part of this time refers to Guo Lin - the first line of code, which was written manually after learning the recyclerview chapter.
. 9 drawing making
. 9 the drawing material is made by myself with the drawing tool in the Windows attachment (i.e. I can't find the resource), and then imported into Android Studio for editing ...
Posted by scuzzo84 on Tue, 08 Mar 2022 01:07:39 +0100
Hello, dear friends, Yien is seeing you again. Unlike the general introduction articles on the Internet, which only stay at the level of "how to use", this article understands gradle from the perspective of source code.
Of course, if you haven't read my previous article "If you don't understand gradle after reading this ar ...
Posted by bhola on Sat, 05 Mar 2022 03:12:17 +0100
1, Introduction to JSON
Posted by getmizanur on Thu, 03 Mar 2022 20:26:56 +0100
Learning is done
Q: an Activity implements onClickListener. At this time, a Button uses setOnClickListener(this) Why is there no memory leak?
A: because the View reference object will be released when the Activity is destroyed, there will be no memory leakage.
Q: can you make it more detailed?
Answer: Yes, Well, the window wi ...
Posted by Dragoonus on Thu, 03 Mar 2022 17:44:06 +0100
Due to the business requirements of the company, the automatic test should meet the following points:
Cross application testingStrong readability of test casesThe test report is readableScreenshots of failed use cases are saved and reflected in the report
Based on the above points, we chose uiautomator when selecting the automation t ...
Posted by ashley526 on Thu, 03 Mar 2022 16:33:40 +0100
1, Network access overview
Let's explain and review. We learned Android's UI, various layouts and controls before. In fact, when we work in the future, this UI does not need us to design. A designer will design the UI for us, and then we will restore the UI in the form of code in xml file. For example, the following figure is the data c ...
Posted by stef686 on Wed, 02 Mar 2022 16:53:33 +0100