Learning summary of iterator pattern
1, Concept
An aggregate object has two responsibilities, one is to store internal data, the other is to traverse internal data. From the perspective of dependency, the former is the fundamental attribute of aggregate object, while the latter can be changed and separated. The traversal behavior of the aggregate object is extracted as an iterat ...
Posted by mrkite on Tue, 05 May 2020 14:59:02 -0700
vue pop-up layer components
vue pop up layer
These are the pop-up layers I usually use for mobile terminals. There are four pop-up layers, with the default value of type 0.12
This is a component layer.vue
code:
<layer ref="layer"></layer>
import layer from '@/components/layer/layer'
1. Loading
1. Default in lo ...
Posted by timmytock on Tue, 05 May 2020 06:35:51 -0700
Intent -- open another Activity -- bidirectional value transfer
In Android applications, we use the intent mechanism to jump between activities.
This example simply introduces how to use intent to make the program jump from MainActivity to another OtherActivity to realize a single parameter value. When returning MainActivity, use Bundle for batch return.
1, Design interface
1. MainActivity la ...
Posted by jeny on Tue, 05 May 2020 04:46:03 -0700
AOS.js using and imitating Millet's demo display
AOS.js is a tool library used to present element animation when the page scrolls, similar to WOW.JS, but AOS is a CSS3 animation driven library, which can make elements move when scrolling the page, and when the page rolls back to the top, elements can return to the previous state, which can achieve the effect of circular animation.
code ...
Posted by TripleDES on Tue, 05 May 2020 04:42:29 -0700
Android Project Actual Series - based on my module in Savvy Valley
Please be patient to read this module because of its large content and length.
My module is divided into four parts
[ ] My interface
[ ] Set up interface
[x] Modify password interface
[x] Set Secret Security and Retrieve Password
1. Modify Password
1. Create a password modification interface
In the com.boxuegu.activity package, creat ...
Posted by congos on Tue, 05 May 2020 01:30:21 -0700
php wechat app payment
Scenario introduction
It is applicable for merchants to integrate wechat payment function in mobile APP.
When the merchant APP calls the SDK provided by wechat to call the wechat payment module, the merchant APP will jump to wechat to complete the payment, then jump back to the merchant APP after the payment, and fina ...
Posted by vince251 on Mon, 04 May 2020 21:35:33 -0700
The advanced RxJava of kotlin is RxJava2
RxJava advanced RxJava2
Recently, I used RxJava when I was working on a project. After learning about RxJava2, I decided to upgrade RxJava of the project to RxJava2. RxJava 2 is completely rewritten based on the reactive streams specification. The specification itself has evolved from RxJava, so you don't need to learn ...
Posted by matjaz on Mon, 04 May 2020 17:26:28 -0700
Android screen rotation use
Looking at a lot of cases about mobile phone rotation, I summarized them;
1. By using the onConfigurationChanged() method, the screen is dynamically loaded when it rotates, but this method can only obtain the horizontal and vertical screens, and can't judge the current rotation angle;
@Override
protected void onCo ...
Posted by loweauto on Mon, 04 May 2020 13:23:33 -0700
Using RTThread and TouchGFX to realize DIY digital instrument -- synchronous weather information
catalog:
1. Using RTThread and TouchGFX to realize DIY digital instrument (1) -- using stm32ubmx5.6 to transplant touchGFX4.132. Using RTThread and TouchGFX to realize DIY digital instrument (2) -- porting TouchGFX to RTThread system3. Using RTThread and TouchGFX to realize DIY digital instrument (3) - obtaining temperature and humidity sens ...
Posted by neogemima on Sun, 03 May 2020 15:23:52 -0700
How to force horizontal screen of page on mobile terminal
Recently, I want to create a mobile game page, so I will first overcome the difficulty of mobile horizontal screen.
demand
1. It is displayed horizontally by default under the condition of vertical screen.
2. Even if the user turns on the horizontal screen mode, the horizontal screen mode of the interface will be ...
Posted by MrPotatoes on Sun, 03 May 2020 11:31:31 -0700