Common memory leaks and solutions in Android

In Android development, when an object does not need to be used, it should be recycled by garbage collection mechanism, but another object in use holds its reference so that it can not be recycled properly, which leads to the object that should be recycled can not be recycled and stay in heap memory, resulting in memory leaks. The impact of m ...

Posted on Wed, 17 Jul 2019 13:18:36 -0700 by anonymouse

Material Design Control Use (2)

This article goes on to the previous one. Summary of Material Design Controls (I) If you are not familiar with Material Design, you'd better read the first one and see the second one. This article describes the remaining controls FloatingActionButton TabLayout Snackbar TextInputLayout FloatingActionButton As the most controve ...

Posted on Tue, 16 Jul 2019 16:19:28 -0700 by ale_jrb

iOS realizes the function of displaying pictures recently taken by Wechat/QQ

If you've just taken a picture, when you use Wechat/QQ to send a message, it will show "pictures you may want to send". Realization principle: 1. When you open or re-enter the chat window, query the latest pictures in the gallery, compare the difference between the time taken and the current time, and display them when they are belo ...

Posted on Tue, 16 Jul 2019 15:30:47 -0700 by Formula

Deep Pit Series--onInterceptTouchEvent's move

It is believed that everyone has been exposed to slip conflicts in container nesting, especially the inconsistency of slip between the rotation chart and listView. So how to solve it? In Android's View series, there are two kinds of ViewGroup s and Views. The related methods for sliding events are as follows: dispatchTouchEvent(ev); onInte ...

Posted on Tue, 16 Jul 2019 11:30:33 -0700 by Archer36

android Capacitive Screen (4): Driver Analysis for Driver Debugging--FocalTech

The touch-screen IC I use is ft5306 from FocalTech, a multi-touch chip for i2c capacitive screen.The overall driver has been officially given, so we'll explain the code for the touch screen and key sections.Explain what should be noted. For all input devices, there are so many parts to report input events. First, set the event type, key type a ...

Posted on Tue, 16 Jul 2019 09:55:43 -0700 by Dorin85

Material Design Guidelines for Use and Development

Preface Material Design, Chinese name: Material Design Language, is a completely new design language launched by Google. Google said that this design language aims to provide a more consistent and wider "look and feel" for mobile phones, tablets, desktops and "other platforms". Reference resources: Material Design Ch ...

Posted on Mon, 15 Jul 2019 16:29:23 -0700 by highrevhosting

Simple Differences Between Animation and Animar

In previous blogs, I've talked about how to use view animation, how to use interpolators and how to customize your own interpolators. In this blog, I'll tell you about the simple difference between animator and animation. Compared with view animation, what are the advantages of attribute animation? First, all attribute animation can be done by ...

Posted on Mon, 15 Jul 2019 16:18:15 -0700 by BITRU

Using Local Broadcast Manager to Solve Broadcast Receiver Security Problem in Android

In Android system, Broadcast Receiver is designed from the global perspective, which can facilitate communication between applications and systems, between applications and within applications. Therefore, for a single application, Broadcast Receiver has security problems. The corresponding problems and solutions are as follows: 1. When an appli ...

Posted on Mon, 15 Jul 2019 15:24:03 -0700 by shwathi

Analysis of Android Message Mechanism from Source Code Perspective

1. Overview I believe you are all familiar with the use of Handler, Handler is often used by us for inter-thread communication. Let's look at a classic piece of code: class LooperThread extends Thread { public Handler mHandler; public void run() { Looper.prepare(); mHandler = new Handler() { p ...

Posted on Mon, 15 Jul 2019 14:08:22 -0700 by dlf1987

Android Design Mode (2) - Builder Mode

Builder mode is a step-by-step creation mode for creating complex objects.Allows users to have finer control over the construction process without knowing the details of the internal build.This pattern is designed to separate the build process from the representation so that both the build process and the components can be freely extended and ...

Posted on Mon, 15 Jul 2019 10:00:25 -0700 by Ixplodestuff8