Details of golang closure instance

closure concept Closure function: a function declared in a function, called a closure function. Closure: an internal function always has access to the parameters and variables declared in the external function in which it resides, even after its external function has been returned (end of life). C ...

Posted by zako234 on Thu, 27 Feb 2020 23:31:39 -0800

Detailed use of Android official architecture component Navigation

Preface Some time ago, when I was doing project development, I encountered several small problems in Fragment management. I always felt that the encapsulated Fragment manager was not elegant at this stage. This has become the Navigation library that I am determined to learn from Jetpack, which was lau ...

Posted by corruption on Thu, 20 Feb 2020 23:04:06 -0800

Glide decryption

Glide is now the most widely used image loading framework, and has always wanted to work on it. Every time, it is deeply involved in it... This time, I will make a thorough analysis of it and try to cover the whole process and its details. This article's Glide parsing is based on the latest version 4.1 ...

Posted by opalelement on Mon, 17 Feb 2020 02:08:51 -0800

Simple application of thmeleaf in springboot

Simple application of thmeleaf in springboot The priority of static directory and the type of storage resources Shortcut key of query class: ctrl+shift+r Search ResourceProperties private static final String[] CLASSPATH_RESOURCE_LOCATIONS = new String[]{ "classpath:/META-INF/resources/", "c ...

Posted by elhelaly1999 on Thu, 13 Feb 2020 22:41:24 -0800

Play Android project development - Homepage 2 (use ViewPager to customize banner carousel chart)

In the last section Play Android project development - homepage (ViewPager+BottomNavigationBar to implement navigation bar) Now we start to fill in the function from the homepage, that is, mainframe. 1. MVP framework construction of Fragment Before that, we used Activity as the View layer. In this proje ...

Posted by Piranha on Wed, 12 Feb 2020 19:05:31 -0800

Mu Ke of "ARM microcontroller and embedded system" -- experiment with a little LED light

Affected by the current epidemic situation, we can only work at home, and finally have time to play the BLAZAR - β learning board. Now, the experiment I is organized as follows for your reference I. conditions required for the experiment 1) BLAZAR - β learning board 2) Jlink debugger 3) ...

Posted by Jim02 on Tue, 11 Feb 2020 21:49:24 -0800

What is Redux, why and how to use Redux

1. What is Redux Official explanation: Redux is a predictable state container for JavaScript apps. This means that Redux is a predictable state container for js applications 2. Why use Redux The following illustration shows how parent-child components communicate when Redux is not used and when Redux is used In the absence of Redux, if co ...

Posted by Zssz on Fri, 07 Feb 2020 08:15:44 -0800

Android - mixed use of ViewPager and Fragment

ViewPager is often used to connect fragments. It is very convenient to manage the life cycle of each page. Using ViewPager to manage fragments is a standard adapter implementation. The most commonly used implementations are fragmentpager adapter and fragmentstatepager adapter. By adding a ViewPager to t ...

Posted by jcrensha627 on Fri, 07 Feb 2020 07:01:16 -0800

Principle of Bidirectional Binding of vue Data

1. Implementation principle of vue Vue.js uses the attribute feature functionality provided by ES5, combined with the publish-subscribe mode, to publish messages to subscribers and trigger corresponding listening callbacks when data changes through Object.defineOrototype() to define set and get attribut ...

Posted by timc37 on Wed, 05 Feb 2020 19:00:06 -0800

OpenGL with QtWidgets: Light color

(This is a study note for LearnOpenGL, translated in Chinese for the tutorial) https://learnopengl-cn.github.io/) 0. Preface Previously, I learned the introductory chapter of LearnOpenGL, and this article started learning about the colors of light (Lighting). 1. How to implement Color can be digi ...

Posted by luke101 on Tue, 04 Feb 2020 16:36:27 -0800