Define custom properties
I need to implement my own properties, such as com.android.R.attr
Nothing was found in the official documentation, so I need information on how to define these properties and how to use them from my code.
#1st floor
Qberticus has a good answer, but lacks a useful detail.If you want to implement these in the library, replace:
xmlns:w ...
Posted by Stevan on Sat, 25 Jan 2020 20:50:19 -0800
Position details and its application (negative value can be taken) [millet case]
Static positioning
1.Static positioning is the default positioning method of labels, that is, each label is located in the HTML The default location in the document flow.
2.In static positioning state, edge offset attribute cannot be used(top,bottom,left,right)Change label position
3.Generally, when w ...
Posted by mikeeeeeeey on Fri, 24 Jan 2020 01:19:40 -0800
Go Excel to protobuf and upgrade to python3
Title: go Excel to protobuf to python3
categories: Go
tags: [go, excel, protobuf, python3]
date: 2020-01-15 16:27:24
comments: false
Go Excel to protobuf and upgrade to python3
Previous articles
The XLS? Deploy? Tool.py conversion tool found on the Internet is python2 version. Here, upgrade it ...
Posted by Birch on Thu, 23 Jan 2020 06:51:28 -0800
Vue entry notes
Vue learning notes
1. MVVM mode and the first Vue program
Learning course of java according to ecstasy
What is MVC?
MVC mode represents model view controller mode. This pattern is used for hierarchical development of applications.
Model - a model represents an object or JAVA POJO that accesses d ...
Posted by zipdisk on Thu, 23 Jan 2020 05:36:46 -0800
Android system.img ext4 format
The image file of Android system.img is in the format of sparse ext4 image,
Space header format:
typedef struct sparse_header {
__le32 magic; /* 0xed26ff3a */
__le16 major_version; /* (0x1) - reject images with higher major versions */
__le16 minor_version; /* (0x0) - allow images with higer m ...
Posted by ukphoto on Wed, 22 Jan 2020 06:10:36 -0800
Details of Attributes, defStyleAttr and defStyleRes in Android
The system's own View can be configured in xml, and the custom View can also be configured in xml. In order to enable the custom View's properties to be configured in xml, the following four steps are required:
1. Add attributes for custom View through < declare styleable >
2. Declare the att ...
Posted by ryanthegecko on Wed, 22 Jan 2020 00:20:38 -0800
Django framework: Model Association, properties of model class
1. correlation
1.1 model class relationship
There are three types of relationships in relational databases:
ForeignKey: one to many. Define the field in the multiple end.
ManyToManyField: many to many, defining fields on either end.
One to one field: one to one, define the field on either end.
1.1.1 one to many relationship
#Define book mode ...
Posted by LiamProductions on Mon, 20 Jan 2020 10:15:24 -0800
Source code decryption of spring MVC startup process
As we know, spring MVC is finally deployed through Tomcat. When the application is deployed in the Servlet, the main steps are (reference from http://download.oracle.com/otn-pub/jcp/Servlet-3.0-fr-eval-oth-jspec/Servlet-3_-final-spec.pdf):
When a web application is deployed into a container, the follow ...
Posted by imurkid on Mon, 20 Jan 2020 05:11:51 -0800
HashMap source code analysis in JDK 1.7
We take jdk1.7.0_80 as an example to analyze the HashMap source code.
Catalog
1, Source code analysis
1.1 important properties of HashMap
1.2 analytical PUT method
1.3 analyze resize method
1.4 parse GET method
2, Problem summary
2.1 how does the rounduptopower of 2 (toSize) method realize to find ...
Posted by Teck on Mon, 20 Jan 2020 02:07:08 -0800
nginx event module implementation details
In Detailed structure of nginx event module In, we explain the overall workflow of the event module of nginx, and focus on the role of each method of organizing the event module. This paper mainly focuses on the entire process, and explains the implementation details of the event module of nginx from the source point of view.
1. ngx_events_bloc ...
Posted by modplod on Sun, 19 Jan 2020 18:02:36 -0800