Implement a simple frame by frame animation in Android (with code download)
scene
In Android, frame by frame animation is composed of consecutive pictures.
Effect
Note:
Blog: https://blog.csdn.net/badao_liumang_qizhi
Pay attention to the public address Domineering procedural ape Get programming related ebooks, tutorials and free downloads.
Realization
First, prepare a group of photos with different expressions, ...
Posted by Bah! Name on Sat, 11 Jan 2020 07:08:12 -0800
Spring auto assembly Bean
Automatic assembly of beans can simplify our code. Here is an example. First, create three entity classes
package com.zhiying.pojo;
public class Cat {
public void shout() {
System.out.println("miao~");
}
}
package com.zhiying.pojo;
public class Dog {
public void shout() {
...
Posted by fotobleu on Sat, 11 Jan 2020 06:25:42 -0800
Next generation Fragment Management Library: Navigation
Preface
In the past, we used Fragment transactions to add, delete, replace and so on. For rapid development, we will also encapsulate a Fragment controller ourselves. Last year, Google launched its Navigation library with the goal of managing fragments more elegantly.
text
Let's first review Fragment's transactions:
fragmentManager.beginTransa ...
Posted by madrazel on Sat, 11 Jan 2020 01:07:56 -0800
Java web filter login permission verification details
Catalog
Three components of JavaWeb Filter
1. Workflow
2. Use scenario
3. Implementation process of filter method
4. Login permission verification case
Three components of JavaWeb Filter
1. Workflow
The client sends the http request to enter the filter first and execute the relevant busines ...
Posted by Immyphp on Fri, 10 Jan 2020 22:33:23 -0800
Android EditText Settings Editable, Non-Editable and Click Events
1. Set up non-editable and clickable events
2. Set non-editable and no click event
3. Set Editable
4. Source Code
4.1 XML Layout
4.2 Java Code
V. Summary
1. Set up non-editable and clickable events
public void setCanNotEditAndClick(View view) {
etContent.setFocusable(false);
etContent.setFocus ...
Posted by talper on Fri, 10 Jan 2020 11:18:04 -0800
Drawing a rectangle with a brush and canvas in Android
scene
In Android, the brush uses the Paint class, and the Canvas uses the Canvas class to represent it.
Basic steps of drawing
First, write a custom view class inherited from view, then rewrite its onDraw method, and finally add the custom view to actvity.
Effect
Note:
Blog: https://blog.csdn.net/badao_liumang_qizhi
Pay attention to the ...
Posted by o2cathy on Fri, 10 Jan 2020 09:56:39 -0800
Xuteng echo "something" > > / etc / privilegedFile does not work
This is a very simple question about sudo permission in Linux, at least it should be.
Many times, I just want to append some content to / etc/hosts or similar files, but I can't do it in the end, because even if I use root, I can't use > and > > at the same time.
Is there a way to make this work without su or sudo su becoming ro ...
Posted by PHPist on Fri, 10 Jan 2020 07:03:46 -0800
Difference between view fill and margin
What is the difference between the margin and fill of the view?
#1st floor
Filling is the space within the boundary between the boundary and the actual image or cell contents.A boundary is the space outside the boundary between the boundary and other elements next to the object.
#2nd floor
Sometimes you can achieve the same result b ...
Posted by jlive on Thu, 09 Jan 2020 18:54:14 -0800
Using Notification in Android to display notifications on the status bar
scene
Show notification effect on status bar
Note:
Blog: https://blog.csdn.net/badao_liumang_qizhiPay attention to the public address Domineering procedural ape Get programming related ebooks, tutorials and free downloads.
Realization
Create a new NotificationActivity and get the notification manager through the getSystemService method.
T ...
Posted by tested_123 on Thu, 09 Jan 2020 10:47:41 -0800
log4j2 source code analysis -- Configuration
Acquisition and initialization of Configuration
LoggerContext is introduced in the previous article. One of the main functions of this class is to convert the structure of the configuration file into Java objects, such as Appender and Logger, according to the configuration file. Configuration is mainly managed by the configuration class. This ...
Posted by borabora12 on Wed, 08 Jan 2020 02:00:15 -0800