Making and Using ShapeDrawable Resources

Shape is an indispensable part of xml drawing. This article will show its usage through a set of examples. (1) Preservation and Reference Save location: res/drawable/filename.xml, file name used as resource ID. Quote: Use R.drawable.filename in a java file Use @ [package:]drawable/filename in the xml file Here's an example to illustra ...

Added by discombobulator on Sun, 02 Jun 2019 22:27:13 +0300

[aspnetcore] Configuration uses jwt authentication

jwt has never been used in a project because of the fear that token will reveal problems.But it's really hot right now, so I'll do some research when I'm free. Implementing jwt in aspnetcore is very simple. It feels that Microsoft has done a lot of work. Although the development efficiency is improved, it makes c#programmers silly. Many things ...

Added by spamyboy on Sun, 02 Jun 2019 20:06:28 +0300

Decoding PDU SMS with java

There are three questions: 1. What is PDU short message; 2. Why use pdu; 3. How to decode with java 1. What is PDU short message? One way of short message, supported by all mobile phones, can use any character set, which is also the default encoding method of mobile phones; PDU is equivalent to a data package, which consists of informati ...

Added by langer on Sat, 01 Jun 2019 23:06:37 +0300

Hibernate table Association configuration

One-on-one One-to-one primary key Association 1.XML configuration Must be bi-directional The primary key generation strategy of the associated party is a foreign key generation strategy The associated party one-to-one needs to set constrained= "true" constraint <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE hibernate-ma ...

Added by GimbaL on Sat, 01 Jun 2019 01:55:49 +0300

Category in iOS

brief introduction When we have more and more functions, the volume of a single file becomes larger, even bloated. When many people cooperate to develop a document, there will be many conflicts. At this time, we need to use the corresponding solution, that is category. This article will proceed from several directions to understand the implemen ...

Added by aleczapka on Fri, 31 May 2019 20:45:48 +0300

Capturing video thumbnails with canvas

When publishing videos, we often need to upload thumbnails of videos at the same time. Recently, at the request of product managers, we need to do a dynamic function of publishing videos. My first reaction is to think of H5 tags vidio and canvas. Here I record the process of completing this function:First, the overall idea is to create a video, ...

Added by xcoderx on Wed, 29 May 2019 21:13:09 +0300

Release Enterprise Red Bag (C#) for Enterprise WeChat Development

1. Enterprise WeChat API Address: http://work.weixin.qq.com/api/doc#11543 2. Explanation of parameters 1. Send enterprise red envelopes Request method: POST (HTTPS)Request address: https://api.mch.weixin.qq.com/mmpaymkttransfers/sendworkwxredpackIs Certificate Required: YesData format: xml See API interface documentation for detailed parameter ...

Added by belayet on Wed, 29 May 2019 20:16:40 +0300

A Code Analysis Function Implemented by Python

The main functions are as follows: 1. Code Statistics of Single Page and Total Lines 2. Annotation Statistics of Single Page and Total Lines 3. Statistics of Code Annotation Rate and Total Annotation Rate 4. Sort by comment rate/number of lines of comment/number of lines of code 5. Annotation analysis according to annotation mode &quo ...

Added by may27 on Mon, 27 May 2019 02:29:19 +0300

Android Group English Learning: Chapter 5, Android Scroll Analysis

This chapter will introduce two main parts: Reasons for Sliding Effect How to Deal with and Realize Sliding Effect 1. How does the sliding effect come into being Sliding a View essentially changes the position of the current View. Therefore, in order to realize the sliding of View, it is necessary to monitor the event touched by the use ...

Added by y.t. on Mon, 27 May 2019 02:20:56 +0300

Android Layout Optimization (I)

For reprinting, please indicate the source: http://blog.csdn.net/guolin_blog/article/details/43376527 Reuse layout files The Android system already provides a lot of useful controls, which makes it easy to write layout. But sometimes we may need to reuse a written layout over and over again. If you always use copy-and-paste for layout reuse, ...

Added by Silverado_NL on Sun, 26 May 2019 01:45:38 +0300