Glide life cycle principle

This article starts with vivo Internet technology WeChat public. Links: https://mp.weixin.qq.com/s/uTv44vJFFJI_l6b5YKSXYQ Author: Lian lingneng Image display in Android App is a very basic and important function. There are many image loading solutions on Android platform, but glide is officially recognized. Android App pages have a life c ...

Posted on Tue, 10 Dec 2019 07:59:58 -0500 by everogrin

Android client obtains Firebase cloud data

Preface: The latest new project uses firebase as the background of app, that is, to obtain the real-time data of Firestore (database) through the sdk of firebase. Firebase's Firestore is a cloud hosted database that stores data as JSON and synchronizes with each connected client in real time. Let me briefly summarize how to obtain the firebase ...

Posted on Tue, 10 Dec 2019 01:48:11 -0500 by rascle

Wechat custom sharing

A few months ago, I was working on a ai project; the project needs to have a custom sharing function in the WeChat public address. Wechat public platform Wechat JS-SDK instruction document Link address: https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141115 JS SDK online address: http://res.wx.qq.com/open/js/jweixin-1.4.0.js Acco ...

Posted on Tue, 10 Dec 2019 01:37:12 -0500 by glueater

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