Github address (full Demo, welcome to download)
1 <?xml version="1.0" encoding="utf-8"?>
3 <declare-styleable name="ItemGroup">
4 <! -- text of title -- >
5 <attr name="title" format="string" />
6 <! -- font size ...
Posted by astoller on Tue, 31 Mar 2020 16:50:26 +0200
openfire send message plug-in (description and source code)
Send messages to users directly if they are online, and save them as offline messages when they are not online
Send a message to a group. If it is online, it will be sent directly. If it is not online, it will be saved as an offline ...
Posted by FredFredrickson2 on Tue, 31 Mar 2020 15:21:42 +0200
1.ViewStub inheritance relationship
public final class ViewStub
The definition of ViewStub on the official website: a ViewStub is an invisible, zero sized view that can be used to lazily inflate layout resources at runtime.
This mea ...
Posted by Spinicrus on Sun, 29 Mar 2020 20:47:04 +0200
Now third-party logins are very common, such as QQ, Weibo and WeChat. Today we are going to implement how to access QQ to login into our project.To use QQ login, we need to register an account with Tencent Open Platform to get the developer qualification address: http://open.qq ...
Posted by jaydeesmalls on Fri, 27 Mar 2020 17:01:28 +0100
Original link: http://www.yiidian.com/mybatis/one-to-one.html
1 What are one-to-one, one-to-many mappings?
Take users and orders for example,
One-to-one: An order belongs to only one user==>The order is one-to-one with the user
One-to-many: A user can have multiple orders==>A user is one-to-many with an order
Note: In MyBatis, if you want ...
Posted by Jak on Sat, 21 Mar 2020 01:45:27 +0100
There are two configuration file formats for SpringBoot. You can choose one of them. yaml is officially recommended:
Format of application.properties key=value
application.yaml key: value format
SpringBoot loads the main configuration file from all four locations; complementary configuration. Priority is fr ...
Posted by Jackanape on Fri, 20 Mar 2020 16:09:56 +0100
1. Write function, the user passes in the modified file name, and the content to be modified, executes the function, and completes the batch modification operation
with open(filename,'r',encoding='utf-8') as read_f,\
open('.bak.swap','w',encoding='utf-8') as write_f ...
Posted by Timma on Wed, 18 Mar 2020 15:28:53 +0100
Dynamic import module
Class built in attr attribute
Packaging and authorization
This article is still the object-oriented content, mainly analyzes the following three methods of object-oriented programming: encapsulation, reflection, dynamic import module, cla ...
Posted by melqui on Mon, 16 Mar 2020 12:53:01 +0100
1. Introduction to ContentProvider
The client operation contentResolver and ContentProvider are the same
Auxiliary operation class ContentUris of Uri
2.ContentProvider database operation
Project class structure
1. Create MetaData
2. Define a subclass of SQLiteOpenHelper class to create and delete me ...
Posted by erme on Sat, 14 Mar 2020 18:26:02 +0100
1. What is string built-in function
As long as a string is created, built-in functions (some functions prepared by the system) can be called by default.
2. Case related
The main functions are capitalization(), title(), upper(), lower(), etc.
capitalize(): capitalize the first letter of the string
Posted by prueba123a on Thu, 12 Mar 2020 12:24:15 +0100