First, you need to have a simple understanding of java generics.
Usually we inherit baseadapter when we write an adapter for listview (although recyclerview is used more nowadays). But baseadapter has a lot of re-reading work.
To simplify this process, here's a piece of code that I encapsulated later adapter s:
public class DemoAdapter ext ...
Posted on Thu, 23 May 2019 17:04:53 -0700 by jbille
Retrofit is a popular network communication library in the past two years. The reason why it is popular naturally has its advantages. First of all, it is the open source work of Square Company. As the saying goes, large factories must produce high-quality products.
As a network communication framework, the basic components are three blocks: 1. ...
Posted on Thu, 23 May 2019 17:01:07 -0700 by RaheimSG
Recently, due to the need for a popup window pop-up effect of the popup pop-up box, according to their own needs to customize a, feel good, so come out to share with you. First paste the effect map:
1. First, I removed the titilebar from the list file and customized a layout as the title bar so that the theme of the app inherits the one wit ...
Posted on Thu, 23 May 2019 14:50:26 -0700 by shmick25
Distinction and use of java web filters and interceptors
1.1 What is an interceptor:
Interceptor, used in AOP (Aspect-Oriented Programming) to intercept a method or field before it is accessed, and then add some operations before or after it. Interception is an implementation strategy of AOP.
Chinese documents in Webwork are interpreted ...
Posted on Thu, 23 May 2019 14:16:52 -0700 by Tucker1337
1. Implementing custom configuration classes
In the previous article, we mentioned conditional annotations for Spring 4.0. We can look at automated configuration classes like @ConditionalOnBean to see that we can implement and inherit the corresponding interfaces and classes, and inject the corresponding annotations into the container, which c ...
Posted on Thu, 23 May 2019 13:38:45 -0700 by lip9000
It's been a long time to use react. Recently, I read an article about the high-level components of react. After reading this article, I suddenly saw a bright light. For a small person like me who is still swaying in the novice village, and everything is moving towards a strange upgrade, something like this is not too difficult and the threshold ...
Posted on Thu, 23 May 2019 12:42:42 -0700 by danman252
1. Prototype design:
The module, element and human-computer interaction form of the page are described by wireframe to express the product more concretely and vividly when it is separated from the skin state.
2. The following is a hierarchical diagram of the persistence layer designed with PowerDesigner:
The dotted triangle represents the &qu ...
Posted on Thu, 23 May 2019 12:38:50 -0700 by datoshway
log4j outputs multiple custom log files
If you need to output a separate log file in practice, how can you separate what you need from the original log to form a separate log file?
Common log4j.properties files
Log in the console and test.log files:
log4j.rootLogger=DEBUG, stdout, logfile
Posted on Thu, 23 May 2019 09:36:11 -0700 by celeb-x2
Underlying data structure
First, through the source code, the field in the class is as follows.
transient Node<K,V> table;
transient Set<Map.Entry<K,V>> entrySet;
transient int size;
transient int modCount;
final float loadFactor;
Node, Map.Entry are two core data structures. Let's first look at the ...
Posted on Wed, 22 May 2019 16:57:33 -0700 by ferpadro
This article is reproduced from Jark's Blog, author Wu Yi (Yunxie), Apache Flink Committer, Alibaba Senior Development Engineer.This article will describe how to build the first Flink application quickly from the aspects of developing environment preparation, creating Maven project, writing Flink program and running program.In this article, w ...
Posted on Wed, 22 May 2019 15:14:00 -0700 by juancarlosc