Ultimate Summary of Sorting Algorithms

In this paper, nine sorting methods are summarized.They are: insert sort selection sort merge sort Bubble Sort heap sort quick sort count sort cardinal sort bucket sort.Referring to the fourth edition of Algorithms, this paper abstracts the common methods needed for sorting, and makes an abstract class. Each sorting class discussed inherits the ...

Posted by napurist on Thu, 11 Apr 2019 10:45:31 -0700

Viscous Sliding - Custom Stickiness View

With the emergence of design package, the android interface has undergone tremendous changes and the effects of various sliding combinations. Now I will customize one of the viscous sliding. The results are as follows: You see the effect, here I inherited Liner Layout, a little more convenient, if it was ViewGroup, it would be a little more c ...

Posted by ComputerChip on Wed, 10 Apr 2019 22:51:32 -0700

[Roll] EasyPlayer Realizes Synchronized Video Recording while Playing

In the previous blog Easy Pusher implemented Android Mobile Live push synchronization video function. http://blog.csdn.net/jyt0551/article/details/58714595 ) I wrote about Easy Pusher's ability to push and store local videos at the same time. Let's introduce Easy Player's ability to save local videos today. EasyPlayer also uses MediaMuxer for ...

Posted by StirCrazy on Wed, 10 Apr 2019 13:48:31 -0700

The Principle of Automatic Return and Red Packet Grabbing by Wechat (2): Automatic Return

Before reading this article, you need to know about Accessibility Service. You can read my last article first.The Principle of Automatic Return and Red Packet Grabbing in Wechat (1): Introduction and Configuration of Accessibility Service Friends already know can read this article directly. After completing the configuration of Accessibili ...

Posted by jd6th on Wed, 10 Apr 2019 00:24:31 -0700

Android Advanced Components - Tab

Tab is one of the most popular Android advanced components, which can save pages, such as our commonly used qq interface, contacts, messages and other function options pages are actually in an activity, switching them does not lead to page refreshment; moreover, the phone functions of mobile phones include contacts, unanswered calls, answered c ...

Posted by Naoa on Tue, 09 Apr 2019 13:09:31 -0700

Android Process Guardian

Process Priority Improving process priority Method 1 starts a 1-pixel activity Method 2 Dual Process Guardian can prevent a single process from killing while preventing a third party's 360 from cleaning up one process from being killed and another process from being started by him to monitor each other and start killing process. The esse ...

Posted by mohvmark on Mon, 08 Apr 2019 18:39:30 -0700

Angular 2.x is the simplest Angular 2 tutorial in history from 0 to 1 (4)

Section one: Angular 2.0 from 0 to 1 (1)The second section: Angular 2.0 from 0 to 1 (2)The third section: Angular 2.0 from 0 to 1 (3) Author: Wang Qian wpcfan@gmail.com Section 4: Evolution! Modularize your application Splitting a Complex Component At the end of the last section, I lazily dumped a lot of code. Maybe you look a little dizzy. Thi ...

Posted by Maugrim_The_Reaper on Mon, 08 Apr 2019 18:12:32 -0700

android image clipping

From: http://blog.csdn.net/zhaokaiqiang 1992/article/details/43022023 When making APP, if there is a user system function, it can't escape this requirement, that is, to set the user's avatar, and to set the avatar, which includes two ways: taking photos and selecting from the album. After the selection, the image is usually required to be ...

Posted by ItsWesYo on Mon, 08 Apr 2019 01:33:30 -0700

CSS and SAS (SCSS) specifications

CSS and Sass (SCSS) style rules ID and class naming ID and class (class) names always use names that reflect the purpose and purpose of elements, or other generic names. Instead of appearances and obscure names. Names that reflect the purpose of the element should be preferred because they are the most understandable and least lik ...

Posted by Peredy on Mon, 08 Apr 2019 00:51:32 -0700

Android: Get screen physical size, density and resolution

Resolution It should be noted that getHeight() and getWidth() are not recommended and getSize() is recommended to replace them.The prototype of this method is as follows: public void getSize(Point outSize) {       synchronized (this) {           updateDisplayInfoLocked();           mDisplayInfo.getAppMetrics(mTempMetrics, mDis ...

Posted by OMorchoe on Sun, 07 Apr 2019 23:24:32 -0700