Android Common Design Patterns 10: Build Patterns
For developers, design patterns can sometimes be a barrier, but design patterns can be very useful, beyond which you can move up a notch.In the development of Android, it is necessary to know some design patterns, because design patterns are ubiquitous in Android source code.For students who want to study design mode systematically, here is a B ...
Posted by BenGilbert on Wed, 25 Sep 2019 19:56:45 -0700
Database Storage
Database Storage
1 Store data using Shared Preferences
Scope of application: save a small amount of data, and the format of these data is very simple: string type, basic type of value. For example, application configuration information (such as whether to turn on sound effects, whether to use vibrat ...
Posted by CrimsonSoul on Mon, 23 Sep 2019 03:49:55 -0700
Imitating D-ball Homepage Mining Animation
Preface
What is a D ball???
D-ball is an industry ecological value sharing platform based on block chain. What on earth is this D-ball for??? If you're interested, you can. Click D ball. Detailed understanding.
Let's not talk about this. Let's talk about how to realize the animation of D b ...
Posted by MrTL on Mon, 23 Sep 2019 01:53:43 -0700
Android 6.0 Elegant Privilege Request Encapsulation
Android Elegant Privilege Request Encapsulation
Let's first look at how the code is written without encapsulation. Here we first need to determine whether there is a specific permission. If there is a specific operation, otherwise we need to request permission. The final result of the request can only be processed in onRequest Permissions Resul ...
Posted by akano on Sat, 21 Sep 2019 00:13:01 -0700
Python takes you to grab a video red envelope, not let go of a red envelope!
Today, I want to share with you a red packet of how to use Python technology to capture video! Not only can you learn Python technology, but you can also make money. Hand-in-hand teaching, with source code! After reading, I think we can have a wave of watching + forwarding!
1
Target scenario
Pytho ...
Posted by robotta1530 on Fri, 20 Sep 2019 22:50:58 -0700
Flutter uses Rammus to implement Ali Cloud Push
Preface:
Recently, the new Flutter project has the requirement of "Ali Cloud Push Notification", that is, when Flutter's App starts, it detects a new notification, clicks the notification bar and jumps to the specified page. Here I use the third-party plug-in Rammus to push notifications. I always used Fcm to push notifications befor ...
Posted by kctigers23 on Fri, 20 Sep 2019 02:59:53 -0700
Reduce the damn if else nesting in the code and make the code more concise!
Written in front
I wonder if you've ever encountered an if else nest like a "pyramid lying across":
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
if (true) {
}
}
}
}
}
}
I'm not exaggerating. I really ...
Posted by blacksmoke26 on Thu, 19 Sep 2019 21:26:44 -0700
Understanding and Use of Android Annotations
Why annotations
As an Android developer, first look at some familiar code:
setContentView(R.layout.activity_main);
Toolbar toolbar = findViewById(R.id.toolbar);
new ViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.xxx, parent, false)));
Non-ellipsible code like this, which appears in large numbers everywhere, is copied ov ...
Posted by majik92 on Thu, 19 Sep 2019 18:51:04 -0700
Explanation of Android Point-9 Diagram Mechanism and Its Application in Chat Bubbles
A Brief Introduction to Point Nine Diagrams
In order to use the same image as the background of different quantities of text, Android designed an image format ".9.png" which can specify the area stretching. This image format is point nine.
Note: This image format can only be used in Android development. In ios development, you can spe ...
Posted by doofystyle on Thu, 19 Sep 2019 05:49:21 -0700
Performance Optimization APP Startup Optimization Startup Black and White Screen Problems and Detection Summary
Let's start with a black and white screen, or a GIF first
APP black and white screen on the market
From one of the above recordings, we can see that some of the common APP startups on the market are white or optimized.Blackscreen is only in Android 4.n which version I forgot.So now let's start optim ...
Posted by jmansa on Wed, 18 Sep 2019 19:41:49 -0700