Activity.onWindowFocusChanged() call process

I combed the startup sequence diagram of Activity and thought about the calling process of Activity.onWindowFocusChanged()? Chase the source code, comb it out and share it. First look at ActivityThread.handleResumeActivity() public final class ActivityThread { final void handleResumeActivity(IBinder token, boolean clearH ...

Posted on Mon, 09 Dec 2019 23:22:20 -0500 by LoStEdeN

CSS unknown height vertically centered

<!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <meta content="IE=8" http-equiv="X-UA-Compatible"/> <title> CSS Vertical centering</title> <style type="text/css"> .container{ width:500px;/*decorate*/ height: ...

Posted on Mon, 09 Dec 2019 20:43:01 -0500 by xsgatour

[9i] applet cloud development Guide database development

This article mainly refers to the database part in the course of wechat small program development and cloud development. This paper mainly includes: (1) create database set (2) add records to the database (3) add, delete, change and check function development 1. Create database collection Open the cloud development consol ...

Posted on Mon, 09 Dec 2019 14:19:52 -0500 by gioahmad

[saltfish PHP] PHP design mode modularization

Design pattern PHP object oriented Modularization: Explain: Class can be said to be a collection of objects with common characteristics, in which "commonality" is not only that these objects are the same, but that they all deal with common problems The process of decomposing a problem into subproblems is modularization Objectiv ...

Posted on Mon, 09 Dec 2019 09:38:53 -0500 by leetcrew

Worth recording

Function anti shake Function throttling is used to prevent users from triggering events after multiple quick clicks. // Multi click throttling anti shake function debounce(func, wait = 500) { let timeout; return function (event) { clearTimeout(timeout); timeout = setTimeout(() => { func.call(this, event) }, w ...

Posted on Mon, 09 Dec 2019 09:15:03 -0500 by w.geoghegan

Using Python to develop intelligent marking system

With the rapid development of modern image processing and artificial intelligence technology, many scholars try to say that CV can be used in the field of teaching instead of teachers to read papers, and liberate teachers from the complex and tiring reading papers, so as to further effectively promote the teaching quality to a higher level. The ...

Posted on Mon, 09 Dec 2019 07:46:01 -0500 by PrivatePile

JS realizes the function of compressing and uploading base64 length of pictures

This article mainly introduces the function of js to compress the base64 length of uploaded pictures. The example code is very detailed in this article, which has a certain reference value for your study or work. You can refer to the following for your friends im sends pictures, now compress and upload the pictures 1) call FileReader's reader. ...

Posted on Mon, 09 Dec 2019 05:24:21 -0500 by Cannibal_Monkey

JGUI source code: simple implementation of middle key rolling and mobile terminal sliding events of accordingmouse

This paper is a method to scroll the data list when the drawer component scrolls the middle mouse button on the PC and the mobile phone. It does not use the third-party plug-ins such as iscoll, and supports Firefox, Google, IE and other browsers.The specific code is in www.jgui.com The source code is not compressed. Please right-click to view t ...

Posted on Mon, 09 Dec 2019 03:53:44 -0500 by amitshetye

android system permission

android system discrimination system app is based on (Flags & parse ﹣ is ﹣ system)! =0. If there is an applicationinfo.flag ﹣ system tag, it is a system app. Otherwise, it is a normal app There are two ways to obtain system permission in android system: 1. Differentiate by Uid: In the PackageManagerService constructor ...

Posted on Mon, 09 Dec 2019 03:14:01 -0500 by galvin

transition-group and Virtual Dom Diff algorithm for Vue

start The title looks a bit odd this time: Put two nouns together that have nothing to do with each other. As you all know, transition-group is one of Vue's built-in components that is mainly used for animation of lists, but is there any special connection with the Virtual Dom Diff algorithm?The answer is obvious, so the next step is code break ...

Posted on Sun, 08 Dec 2019 21:29:30 -0500 by charlestide