android collapsible title block

1, First, let's see the effect 2, Code 1,MainActivity.java package com.example.lcf.myapplication; import android.os.Bundle; import android.support.design.widget.CollapsingToolbarLayout; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.To ...

Posted on Sat, 02 May 2020 03:35:56 -0700 by weazy

java explanation -- JOSN analysis

JSON syntax 1. Function: JSON text is a medium similar to XML text file used to store and transfer data information Note: like XML, json can be used not only as a data carrier through response files, but also as a corresponding data carrier through strings satisfying syntax, which is called "json string" 2. Data storage in JSON ad ...

Posted on Fri, 01 May 2020 22:48:33 -0700 by blkraven

Several ways for Spring to load Properties configuration files

1: Load configuration file through context: Property placeholder tag Add the following declaration to spring's configuration file <context:property-placeholder ignore-unresolvable="true" location="classpath:jdbc.properties"/>   When referencing values, use $to reference the values you need1. In datasource.xml <!-- Configu ...

Posted on Fri, 01 May 2020 20:02:46 -0700 by snog

Android simple package get verification code countdown

We believe that the effect shown in the figure is not unfamiliar to everyone. We can use many methods to achieve this effect. Here we use CountDownTimer timer to simply encapsulate this effect, which is convenient for us to call at any time. The first page defines the following attributes in attrs.xml: <resourc ...

Posted on Fri, 01 May 2020 16:08:39 -0700 by thunder708

Mybatis -- optimize configuration file based on annotation CR

This article mainly focuses on the optimization of write configuration files, such as jdbc.properties configuration file, files introduced into database, such as driver,url,username,password, etc., and then introduce the corresponding file in SqlMapConfig.xml to simplify the configuration file. In SqlMapConfig.xml, use < typealiases > &lt ...

Posted on Fri, 01 May 2020 15:14:59 -0700 by aaadee

Java - using JavaMail to send an email to the user's mailbox

<----—–start----—–> Send an email via javamail: Earlier, I had written a tool class MailUtils for sending mail. The following points need to be noted: ① The mail server address of the Outbox. ② Outbox account number. ③ Mailbox authorization code, which is set in the used mailbox background management. ④ Addr ...

Posted on Fri, 01 May 2020 14:04:09 -0700 by chriskiely

On iconFont

Why go up? Because the package I found on the Internet doesn't work very well. My friend said that he would come to work tomorrow and send it to me. If it works well, it will work. If he doesn't feel particularly good, he will be a eunuch This article refers to https://www.jianshu.com/p/06365b31dff1 I won't talk about how to enter the Al ...

Posted on Fri, 01 May 2020 12:37:12 -0700 by flyhoney

Mybatis generator reverse engineering setting does not generate Example class

Every time po and mapper are generated before, the Example class and its corresponding CURD method are generated. It's also troublesome to delete, so just let it not be generated. The specific configuration is very simple. You only need to turn off the generated method in the table tag of the table to be set. The code is as follows. &lt ...

Posted on Fri, 01 May 2020 06:36:12 -0700 by micmania1

Hexo theme optimization

Guide reading This paper is mainly based on Hexo's theme NexT optimization, path:. / themes/next, and other topics are similar. optimization Multiple tags Use [label1, label2 Label n] Home page article Preview Find. / themes/next/_config.yml c # Automatically Excerpt. Not recommend. # Please use < ...

Posted on Fri, 01 May 2020 04:21:39 -0700 by blaster_master

Four ways to instantiate bean s in Spring

This article mainly introduces four ways to instantiate beans (injection way) or four ways to instantiate dependent objects. The above program, to create a bean object, uses what method and constructor method (Spring can create a class object when the constructor is privatized) There are four common creation methods: 1) setter method 2) Constru ...

Posted on Fri, 01 May 2020 02:37:29 -0700 by misc00500