Notes on the second edition of the first line of code for Android learning (7) the development of UI (4)
RecyclerView
The scalability of ListView is not good. It can only realize the vertical scrolling effect of data, but not the horizontal scrolling.
RecyclerView not only can easily achieve the same effect of ListView, but also optimizes the shortcomings of ListView.
RecyclerView scroll horizontally
1. RecyclerView is a new c ...
Posted by noclist on Wed, 25 Dec 2019 08:26:04 -0800
12, SpringBoot elegant integration of Spring Security
Preface
As for what spring security is, there are two main functions: user authentication and authorization. That is, we often say that users can only perform other operations after logging in. If they do not log in, they will be redirected to the login interface. Some users have permission to perform an operation, while others are authorized i ...
Posted by kpasiva on Tue, 24 Dec 2019 22:17:45 -0800
Similar to the effect of footer, using simple layout to realize the bottom suspension control of ListView
When using listview/recycleview, we often encounter a demand: a layout is suspended under a ListView, and when the items of ListView exceed the bottom of the screen, they are fixed at the bottom.
At first, I thought of using ListView's footer to realize this function. Later, I found a simple layout to realize this function.
L ...
Posted by tony.j.jackson@o2.co.uk on Tue, 24 Dec 2019 13:42:02 -0800
Android - use of data binding RecyclerView
Today, let's talk about the use of DataBinding in the list RecyclerView
List binding
List display is often used in App. Data Binding plays an important role in the list, directly binding data and events to each list item.
RecyclerView
In the past, we used to use ListView, GridView, or some customized views on GitHub to do waterfall flo ...
Posted by tat on Tue, 24 Dec 2019 12:01:30 -0800
Simple implementation of free sliding table with fixed header row
When the table slides up and down, the first row is fixed and linkage is not required. The effect is as follows:
Right slide, slide, select:
The structure is as follows:
Each Item of the header LinearLayout and the table content ListView is the same LinearLayout. If you want to have different lines, set the wi ...
Posted by gca07738 on Tue, 24 Dec 2019 08:28:23 -0800
Syntax differences encountered in MySQL conversion and Solutions
Recently, the company's project needs to be transferred from SQL Server to MySQL. In the process of transferring, some differences between the two grammars are encountered. After finding a solution on the Internet, it is recorded here. Since there may be many solutions, I only record what I have used for reference.
1. Splicing string
Using the ...
Posted by xplore on Tue, 24 Dec 2019 06:54:56 -0800
Interceptor in struts 2
Interceptor (interceptor)
1, Interceptor overview
Interceptor is one of the most powerful features of struts 2. It is a mechanism that allows users to do some processing before Action execution and after Result execution.
Interceptors are conceptually the same as servlet filters or JDK proxy classes. Interceptors allow for crosscutting, separa ...
Posted by adamgeorge on Tue, 24 Dec 2019 00:50:35 -0800
Using ksoap2 to call webservice in Android
In recent demand, Android app calls remote webservice and checks it on the Internet. In general, it uses ksoap2 for a try. At first, it is not successful. Then it uses axis used in web development last year for reference. Finally, it returns to ksoap2. After several attempts, it is finally successful. The share is as follows:
...
Posted by ICEcoffee on Mon, 23 Dec 2019 09:05:28 -0800
Java implementation of Word/Pdf/TXT to html
introduction:
Recently, the company is working on an education, training, learning and online examination project. I am mainly engaged in the online course module, mainly doing the course classification, course, courseware creation and online learning and statistical functions, because courseware involves many types, such as video, audio, graph ...
Posted by brianjw on Mon, 23 Dec 2019 07:17:51 -0800
Getting started with spring (3) using spring mvc
1. Create project / module
New empty project:springMvcStudy New module: type Maven webapp, name mvcStudy
2. Set Sources and Resources for module
Create two new folders under mvcStudy/src/main: java,resourcesOpen File/Project Structure/Project Settings/Modules, select mvcStudy, and click the Sources tabSet the java folder to Sources and the ...
Posted by Viper_4 on Sun, 22 Dec 2019 13:35:44 -0800