In 2020, I will use MVVM in the project, the authoritative guide for Android development

Data binding provides two-way binding function, so many frameworks directly inject ViewModel into xml. I personally dislike this practice. It may be that getting up early and Databinding is immature often leads to inexplicable compilation errors XXX Br not found and can't find variable. When using Databinding, I use it more to get the control a ...

Added by taith on Thu, 16 Dec 2021 11:23:39 +0200

Simple implementation of SpringMvc handwriting - MVC conclusion

After the above two articles, you should have a general understanding of the principle of spring (the code is not important, but the focus is on the idea). spring is implemented, so we have to mention MVC architecture. MVC architecture How to design the structure of a program is a special knowledge, called "architectural pattern", w ...

Added by silverglade on Thu, 16 Dec 2021 11:11:55 +0200

Internet factory interview and examination center -- Design Mode

Blog address: Coding Lemon's blog All articles will be updated on the blog at the first time! Big factory interview series fifth bullet! This chapter is special. It may summarize all the common design patterns, and then I will mark out some of the most frequently asked design patterns. There are many contents, but they are dry goods! In or ...

Added by phast1 on Thu, 16 Dec 2021 08:38:42 +0200

23 design patterns to help you write beautiful code gracefully

The principle or source code of each technology stack we usually use is more or less related to the concept of design patterns. It can also be said that only by better mastering design patterns, our code can be more standardized, concise and more efficient. Secondly, most of the design patterns are repeatedly summarized through the experience ...

Added by robogenus on Wed, 15 Dec 2021 13:22:35 +0200

Design pattern - template method pattern

Template method pattern 1. Template method mode In Template Pattern, an abstract class publicly defines the method / template for executing its method. Its subclass can override the method implementation as needed, but the call will be made in the way defined in the abstract class 1. Introduction Intent: define the skeleton of the algor ...

Added by jaytux on Wed, 15 Dec 2021 07:04:24 +0200

The first time the car starts in 2021, the fleet fair is officially open source, and more than 2 years of experience is a must

Design and thinking of fluent dynamic framework Fair Flutter dynamic framework Fair Document launch & open source countdown Fair is a Dart oriented framework. Although JavaScript is the "best language" in the world, we still choose Dart oriented rather than JS. There are two considerations: The framework community based on J ...

Added by richardk1 on Wed, 15 Dec 2021 03:04:53 +0200

Java design pattern - Template Method Pattern

1, Introduction The 23 design modes are roughly divided into three categories: There are 5 kinds of creation modes: factory method mode, abstract factory mode, singleton mode, prototype mode and builder mode. 7 types (structural mode): adapter mode, decorator mode, agent mode, appearance mode, bridge mode, combination mode and sharing mode. ...

Added by suntra on Wed, 15 Dec 2021 01:40:32 +0200

[open source project sharing] a very simple and easy-to-use composite skeleton screen. Come and have a look!

Jetpack Compose is a new library released by Google at the 2009 Google I / O conference. It is a modern toolkit for building native Android UI. It has powerful tools and intuitive Kotlin API to simplify and accelerate UI development on Android. It can help developers create views with less and more intuitive code, have more powerful functions, ...

Added by kidintraffic on Wed, 15 Dec 2021 00:59:53 +0200

Explanation of Android point nine diagram mechanism and its application in chat bubble. What should Android development learn

Execute successful instance jundeMacBook-Pro:Phase I bubble junxu$ ./aapt c -S /Users/junxu/Desktop/Phase I bubble/Bubble demand finishing -C /Users/junxu/Desktop/Phase I bubble/output Crunching PNG Files in source dir: /Users/junxu/Desktop/Phase I bubble/Bubble demand finishing To destination dir: /Users/junxu/Desktop/Phase I bubble/output ...

Added by vikaspa on Wed, 15 Dec 2021 00:24:51 +0200

The most detailed dynamic Proxy analysis in Java -- Proxy

Next is the source code analysis. Before analysis, you must understand the agent mode. What is the proxy model Proxy pattern is a common design pattern in java. Its feature is that the proxy class has the same interface as the delegate class. If other classes want to access this class, they must first pass through the proxy class. In some ca ...

Added by mrneilrobinson on Mon, 13 Dec 2021 09:05:22 +0200