Two ways to implement page layout using thymeleaf template

Method 1: Using thymeleaf Layout:fragmentLabel, layout page as follows: <!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta nam ...

Posted on Thu, 09 Jul 2020 10:44:41 -0400 by Dethman

Android: how to use ViewPage

catalog 1. Definition ViewPager is a class in the Android extension package v4 package android.support.v4.view.ViewPager Similar to LinearLayout, the ViewPager class directly inherits the ViewGroup class and is a container in which we need to add the content we want to display. Similar to ListV ...

Posted on Mon, 29 Jun 2020 02:15:32 -0400 by zoffi

Talk Android together (247th time: data transfer between fragments in Android 5)

Hello, ladies and gentlemen, last time we talked about the example of data transfer between fragments in Android, this time we will continue to talk about this example. Don't talk about it. Turn it around. Let's Talk Android! Dear Sirs, we introduced the use of fragment parameters to transfer data betwe ...

Posted on Thu, 25 Jun 2020 23:51:32 -0400 by ryanlwh

Unity StanderShader Series 1 -- forwardbase source code analysis

Source code analysis of unity standershaderforwardbase Article catalog Source code analysis of unity standershaderforwardbase Vertex Processing Input structure - VertexInput Output structure - vertex output forwardbase Vertex function -vertForwardBase VertexGIForward tangentToWorldAndPackedData ...

Posted on Tue, 23 Jun 2020 03:34:24 -0400 by RobM

Imitating Baidu net disk to realize file slice upload and breakpoint continuation on web side

Unable to restrain the emotions of the early morning, the humid voice of a rough man's shy rose opened quietly. Is it my aesthetic view that tiktok has seen many times in harmony? Many of the functions I wrote are independent in my daily development, and I will consolidate and comb the overall imp ...

Posted on Tue, 16 Jun 2020 23:48:01 -0400 by Kyori

Innovation training blog (17) - ListView in Kotlin is highly adaptive and the list of different Item types is shared

Highly adaptive ListView is a very common part of Android development, and it is used in all kinds of APP, whether it is QQ's chat list or WeChat's official account list. In practice, we have encountered such a problem: Maybe I want the ListView to be nested in the ScrollView, and there are many o ...

Posted on Mon, 15 Jun 2020 23:50:55 -0400 by someone2088

Android architecture component -- ViewBinding learning notes

Android architecture components – ViewBinding learning notes 1. Problems solved The purpose of ViewBinding is to reduce the use of template code findViewById(int), improve development efficiency, and simplify the code of Activity and Fragment. 2. Using ViewBinding The use of ViewBinding req ...

Posted on Sun, 14 Jun 2020 04:40:48 -0400 by Wes1890

Using Kotlin to develop Android application (10) - Navigation of architecture components

Navigation of architecture components Navigation component is a library that can manage complex navigation, transition animation, deep link and compile time check parameter transfer among multiple screens in the application To use Navigation, you need to build.gradle Add dependency to: implementation 'androidx.navigation:navigation-fragment: ...

Posted on Thu, 11 Jun 2020 00:51:42 -0400 by df75douglas

java multithreading -- life cycle, thread communication

java life cycle, thread communication   1, Life cycle The thread life cycle depends on the following figure. Around the figure, explain the meaning of its methods and the differences between different methods. 1. yield() method yield() puts the currently running thread back in place to allow other threads with the same priority to get ...

Posted on Wed, 10 Jun 2020 00:28:40 -0400 by Chris_Mc_1985

Unity Shader after screen effect - edge detection

For details about the control class of the after screen effect, see another blog written earlier: https://www.cnblogs.com/koshio0219/p/11131619.html This article is mainly based on the previous control class, to achieve another common after screen effect - edge detection.   Concept and principle part:   First of all, we need to know that ...

Posted on Mon, 08 Jun 2020 23:56:03 -0400 by jsims