After Android English text click, get the English word of the current click and set the shadow

TextView control itself has many properties to control. If you want to get content, you only need getText() method to achieve it. At the same time, you can set various listeners for TextView. However, if you want to click to get part of the content in TextView, it's difficult to achieve it only by the f ...

Posted on Thu, 12 Mar 2020 01:21:43 -0700 by peranha

Spring - IoC core (based on XML), DI core (based on XML)

Catalog 1, IoC container 1. The difference between BeanFactory and ApplicationContext 2. Four ways to instantiate a Bean 2.1. Instantiate with constructor (no parameter constructor) 2.2. Static factory method instantiation (understanding) 2.3 instance factory method instantiation (understanding) ...

Posted on Wed, 11 Mar 2020 23:31:40 -0700 by rashmi_k28

C ා [difference between hashtable, HashSet and Dictionary]

[difference between HashTable, HashSet and Dictionary] 1.HashTable hash table A Hashtable represents a collection of key / value pairs. In the * *. NET Framework * *, Hashtable is a container provided by the System.Collections namespace. It is used to process and represent key value pairs similar to key value, where key is usually used for quic ...

Posted on Wed, 11 Mar 2020 04:17:36 -0700 by shenmue232

Delayed loading of mybatis

In Mybatis, the configuration and implementation of one-to-one, one to many, many to many relationships can realize the associated query of objects. In the actual development process, we don't always need to load the user's account information when loading the user information. This is what we call del ...

Posted on Wed, 11 Mar 2020 03:02:34 -0700 by peterj

Deep understanding of iOS block

auto variable of object type Example 1 Let's start with a simple exampleDefine a class YZPerson with only one dealloc method @interface YZPerson : NSObject @property (nonatomic ,assign) int age; @end @implementation YZPerson - (void)dealloc { NSLog(@"%s",__func__); } @end Use the following code int main(int argc, const char * argv[]) ...

Posted on Tue, 10 Mar 2020 23:42:26 -0700 by ttroutmpr

VUE feature 1: data bidirectional binding

VUE is a kind of MVVM development mode. One of the important characteristics of VUE, which is different from React and other front-end frameworks, is that VUE realizes the bidirectional binding of data and view. 1, Two way binding PK: If you want to realize the two-way binding of an input box for inpu ...

Posted on Tue, 10 Mar 2020 20:49:40 -0700 by Belleanme

Kaggle -- house price -- linear regression model

Entry level answers to kaggle – house price This article only involves the completion of the entry level, so the data processing and model are relatively rough, not the detailed optimization. Therefore, kaggle's submission and test should be in the middle level, and the subsequent optimization sho ...

Posted on Tue, 10 Mar 2020 19:22:32 -0700 by erikjan

[java framework] Spring -- Spring Dependent Injection Configuration

1. Spring Dependent Injection Method Today, I'm going to focus on the various injection-dependent ways in the Spring framework and the associated set of configurations, which are the core fascination of Spring's lightweight DI, IOC Bean container framework. Spring Dependent Injection This article highlights the constructor parameter injection, ...

Posted on Tue, 10 Mar 2020 09:42:59 -0700 by SerpentSword

Implementation of dynamic sql for mybatis4

###1. What is dynamic SQL In MyBatis, a set of tags is provided to facilitate the implementation of dynamic SQL, which does not need to splice strings through java code ###2. Tags in dynamic sql ######1. It is used for condition judgment. The test attribute represents the result of judgment. It is requi ...

Posted on Tue, 10 Mar 2020 04:25:11 -0700 by apenster

Easy to handle -- spring boot's custom annotation and validation of custom validator

Spring boot's custom annotation and validation Step 1: create entity class User @Data @Component public class User { private String userId; private String username; private String password; private int age;//A verification will be customized belowMinimum ageAnnotation class } Step 2: customiz ...

Posted on Mon, 09 Mar 2020 22:21:19 -0700 by jweissig