Simple use of RecycleView

This control is used to display a large number of datasets in a limited window. In fact, we are not new to this kind of control, such as ListView and GridView. With ListView and GridView, why do you need RecyclerView? RecyclerView architecture provides a plug-in experience, high degree of decoupling and exceptiona ...

Posted on Tue, 05 May 2020 01:15:12 -0700 by tempi

Generating and parsing QR code in Java

Today, I meet the need to use Java to generate two-dimensional code pictures. Let me summarize. Objective: with the help of ZXing Core toolkit provided by Google, the generation and analysis of two-dimensional code can be realized with Java language. The steps are as follows: 1. In Maven project, ZXing Core toolkit is introduced into pom.xml ...

Posted on Mon, 04 May 2020 21:29:37 -0700 by __greg

Bezier curve of technology sharing

Application scenarios of Bezier curve: progress of file download, progress of charging power, water ripple effect design sketch: Custom control create a new class Wave inherit view package besia.test.liang.com.besiacom.liang.test.besia; import android.animation.ValueAnimator; import android.content.Context; import android.graphics.C ...

Posted on Mon, 04 May 2020 19:20:53 -0700 by efron

Android frame animation patching animation attribute animation

There are three types of animation in Android: 1 frame animation 2 animation of mending room 3 attribute animation 1 frame animation Look at the picture first The common method is xml resource file Create the animation.xml file under res/drawable <?xml version="1.0" encoding="utf-8"?> <animation-list xmlns:androi ...

Posted on Mon, 04 May 2020 14:44:55 -0700 by plasmagames

Spring MVC integrates fastjson simple configuration

Here is Official documents Introduction: If you are using XML to configure Spring MVC, just add the following configuration to the XML configuration file of Spring MVC. <mvc:annotation-driven> <mvc:message-converters> <bean class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter"/> < ...

Posted on Mon, 04 May 2020 10:53:46 -0700 by valen53

SwipeRefreshLayout based pull-up loading more controls

It has been more than half a year since the last blog. CSDN has been revised recently, and various user experience is also being inaccessible to countless people. However, the blog should be written and make complaints about the topic. Now there are many projects using lists to display data, and ListView and RecyclerView are familiar to all. ...

Posted on Mon, 04 May 2020 10:36:29 -0700 by scott.stephan

android TextView set neon effect

TextView set neon effect TextView is one of the most commonly used controls in android, and it is also a very simple control. Here, a simple demo is made by using TextView to familiarize yourself with TextView, which is suitable for android novice partners to have a look. The whole process is to use threads to send messages every other time ...

Posted on Mon, 04 May 2020 08:01:18 -0700 by cscheuble

Gin go learning Note 6: preparation of gin web framework Api

Api writing 1> The data formats returned by the Api of the Gin framework are JSON, XML and yaml. Yaml is a special data format. (I haven't implemented the operation of getting nodes for the time being.) 2> In the apis folder, create a new data.go file as the business logic code to obtain api data. The specific code is as follows:     pac ...

Posted on Mon, 04 May 2020 04:14:13 -0700 by Levan

The FileSystemWatcher class monitors the change state of the file and backs up the file in real time

First of all, this is what I need to use in a task requirement. The general code is as follows: I encapsulate the method of monitoring files and backup files into a WatcherAndBackup Class, but I always feel that the encapsulation is not very good. A big bull can point out the correction here. Thank you for your advice! The main class used in th ...

Posted on Sun, 03 May 2020 23:30:24 -0700 by Richard Bowser

Laravel generate Word document - phpword

In the actual development or learning of a project, there is a need to export data to generate word documents. Here we use the elegant and popular laravel framework to simply teach you how to implement it. phpword, which can easily generate word documents, can also add tables, directories, pictures, hyperlinks, headers ...

Posted on Sun, 03 May 2020 15:06:33 -0700 by Ibnatu