Android custom viewGroup realizes the second floor of Taobao and handles multi finger touch events
preface Strolling around Taobao without doing anything, I found that there was a second floor of Taobao on the home page. As shown below: The UI effect is very interesting, so I plan to roll one by hand. thinking The ScrollView is the first thing that comes to mind when scrolling the view, and then handle his gesture sliding event to dynami ...
Added by kam_uoc on Wed, 19 Jan 2022 18:16:17 +0200
Abstract factory pattern
Abstract factory pattern is an upgraded version of factory method pattern. Factory method pattern only produces one level of products, while abstract factory pattern can produce multiple levels of products. The following conditions are generally met when using the abstract factory pattern. There are multiple product families in the system. Each ...
Added by jprazen on Wed, 19 Jan 2022 17:20:03 +0200
Solution to quickly read specific information from Android live app source code
In order to quickly read specific information, display or verify it in the source code of cloudleopard live app, the most popular solution is to "scan QR code". In this way, users do not need to use complex memory and logic. They can realize the requirements with a gentle sweep. It is very common in all kinds of apps.
So today, let's ...
Added by PHPFreaksMaster on Wed, 19 Jan 2022 12:02:34 +0200
Some thoughts on factory mode
Design patterns are often asked in the interview. Since I wrote the single case pattern asked in detail yesterday, I might as well learn a design pattern every day. The overall feeling is that design patterns are very abstract and need to think about some problems, especially in daily code and work.
I checked many blogs and found that everyone ...
Added by gyash on Wed, 19 Jan 2022 11:04:20 +0200
Fundamentals of mobile application design -- final examination -- comprehensive practice of login interface and simple diary
Final report of fundamentals of mobile application design
Project Name:
On machine assessment of mobile application development foundation
Tools, software and environment used:
JDK,Android Studio
1, Subject background
In the final computer examination, the contents of Experiment 4 and Experiment 5 and the small experiments completed ...
Added by tomkleijkers on Tue, 18 Jan 2022 21:37:49 +0200
Responsibility chain model of js design pattern
I Initial responsibility chain model
Definition: multiple objects have the opportunity to process the request, so as to avoid the relationship between the sender and receiver of the request. Connect the object into a chain and pass the request along a chain until an object processes it.
It may be a little obscure. Let's take a look at an exam ...
Added by radley on Tue, 18 Jan 2022 12:47:42 +0200
Command mode & mediator mode
With feelings and dry goods, wechat search [Third Prince Ao Bing] pays attention to this programmer with a little something.
This article GitHub https://github.com/JavaFamily It has been included. There are complete test sites, materials and my series of articles for the interview of front-line large factories.
Recently, I was sharing a se ...
Added by dibyendrah on Tue, 18 Jan 2022 10:30:22 +0200
Design pattern -- agent pattern
Basic principles of agent mode
Basic introduction to static agent mode
Proxy mode: provides an avatar for an object to control access to the object. That is, the target object is accessed through the proxy object The advantage of this is that additional function operations can be enhanced on the basis of the realization of the target obje ...
Added by pacuran on Tue, 18 Jan 2022 09:09:21 +0200
GOF factory mode
GOF creative pattern series
Singleton modeFactory modeAbstract factory patternBuilder pattern Prototype mode
reference material
Shang Xuetang_ Simple factory modeShang Xuetang_ Factory modeRookie tutorial_ Factory mode
1. General
Basic principles of object-oriented design
OCP (open closed principle): a software entity should ...
Added by Jarod on Tue, 18 Jan 2022 08:09:59 +0200
Several common design patterns
Design pattern
This article talks about several common design patterns.
Create pattern
The function of the creation mode is to create an object. When it comes to creating an object, the most familiar thing is to new an object and then set the related attributes. However, in many scenarios, we need to provide the client with a more friend ...
Added by RootKit on Tue, 18 Jan 2022 04:27:54 +0200