Thymeleaf template layout

Official documents: https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html 1. Define template fragments Definition and reference fragments   In our pages, we often need to include parts in other templates, footers, titles, menus and so on... To do this, Thymeleaf needs us to define these parts, "fragments" for inclusion ...

Posted by plsanders on Wed, 29 May 2019 04:07:13 -0700

Android Fragment Details (I)

Fragment Details (II) Fragment Details (II) 1. Basic concepts 1) What kind of ghost is it and what's its use? Answer: Fragment can make your app enjoy silky design. If your app wants to improve its performance substantially and reduce its memory usage, the same interface Activity takes up more memory than Fragment, and the response speed of Fra ...

Posted by hunna03 on Sat, 25 May 2019 14:57:03 -0700

Annotative Framework--The Use of Butterknife

Write in front: This document uses version 7.0, version 8.0 method name has been changed, it is recommended to see the official document, the overall business logic and principles have not changed. Official website In the process of android programming, we will write a lot of layout and click events. Simple and repetitive operations like i ...

Posted by Dev on Tue, 21 May 2019 12:47:51 -0700

Python 3 crawler learning notes (1) first crawler urllib learning

I. What are reptiles? Web crawlers (also known as web pages) spider It is a kind of automatic grabbing according to certain rules. Web A program or script for information. If the Internet is compared to a large spider web, each node in the spider web has a lot of data. A crawler is like a small spider who finds the website thr ...

Posted by patrickm on Sun, 19 May 2019 03:36:40 -0700

Android Design Patterns--Builder Patterns

public class Person {       private String name;       private String password;       private String birthday;       private int age;          public void setName(String name) {           this.name = name.toUpperCase();  //User names are case-insensitive and uniformly capitalized       }              public  ...

Posted by darthbutternutz on Sat, 18 May 2019 14:00:52 -0700

Android 8.0 (34) - - Android 8.0 Settings Process Analysis and Change

Android 8.0 Settings Process Analysis and Change One, compared to Android Settings 7.0 As shown below, on the basis of 7.0, the new side-slip menu of 7.0 has been removed (maybe it feels like chicken ribs). Adding an additional level of page, the original category title into the first level of menu sub-items. The code archite ...

Posted by felodiaz on Sat, 18 May 2019 10:26:26 -0700

React (17) Asynchronous Component

26. Asynchronous components When using asynchronous components in React, the core knowledge is two: How webpack loads other modules asynchronously: through require(['xxx'], function(module) {}); How to use the module loaded asynchronously in React: Refer to the normal way of using the module; [Asynchronous loading] For asynchronous load ...

Posted by qadeer_ahmad on Fri, 17 May 2019 13:48:11 -0700

Source code analysis of the difference between commitAllowingStateLoss() and commit().

There was an occasional error when using Fragment. Can't perform this action after onSave Instance State. It means that it can't be performed after onSave Instance State. This operation means commit(). It didn't pay much attention to it before. Later, I learned about this problem by looking at the source code. Here's an analysis of this proble ...

Posted by johnoc on Fri, 17 May 2019 10:42:17 -0700

How do Spring Boot 2.X add interceptors?

Recently, a project has been built using SpringBoot 2.X. Most of the interfaces need login checking, so we intend to use annotation + interceptor to implement it, and record the implementation process here.   First, the principle of implementation 1. Customize a comment @NeedLogin and add it to the interface method or class method if the ...

Posted by 0p3n_p0rT on Thu, 16 May 2019 19:12:35 -0700

Glide 4 Parsing Series: See Glide 4 for source code

The last article talked about the basic functions and uses of Glide4.x. If you don't know Glide4, you can check out the previous article. Glide 4 Parsing Series (1): How to Use Glide Today's article is an analysis of Glide4 from the source point of view. The core of Glide's basic usage in the last article is just one sentence: Glid ...

Posted by Sprout on Wed, 15 May 2019 19:12:35 -0700