Brief analysis of Android 'asynctask'

Brief analysis of Android 'asynctask' A brief analysis of AsyncTask Classic asynchronous task: AsyncTask. Scenarios include batch download, batch copy, etc. The official document directly gives an example of bulk downloading. private class DownloadFilesTask extends AsyncTask<URL, Integer, Long> { protected Long doInBackground( ...

Posted by designerguy on Sat, 30 Nov 2019 12:18:04 -0800

h5 chat room case | imitation wechat chat interface | multi crowd chat

html5 imitation wechat chat room wechat room case | multi crowd chat interaction | imitation wechat chat interface The project is developed by using html5+css3+zepto+swiper+wcPop and other technologies Imitation wechat chat room , has been debugged for a long time, and has been adapted to various devices on the mobile phone, ...

Posted by samba_bal on Sat, 30 Nov 2019 03:20:14 -0800

Reptile [1] python reptile introduction case - crawling pictures

Preface: After learning the basic knowledge of python, let's write a simple case of crawler, which uses urllib and re library. The reptile principle of this case: First of all, we use urllib library to simulate the behavior of browser visiting website, and get the source code (html tag) of corresponding webpage from the give ...

Posted by fabiuz on Fri, 29 Nov 2019 12:24:11 -0800

Reptile [2] use of beautiful soup Library

Preface: In the previous article, we used the urlib and re libraries of python to complete the introduction case of crawler However, because regular expressions are difficult to master, we use a third-party library: beautiful soup to intercept the content of the web page text One, download and install beautiful soup If p ...

Posted by truck7758 on Fri, 29 Nov 2019 11:40:28 -0800

android realizes CircleImageView by modifying image pixels

There are many ways to implement CircleImageView, each with its own advantages and disadvantages, so it needs to be used according to different scenarios. Today, we use the method of modifying image pixels to realize CircleImageView. The main knowledge points are nothing more than Pythagorean theorem and the distance from point to circle. Mate ...

Posted by FrOzeN on Fri, 29 Nov 2019 06:28:15 -0800

Android fragment for static loading

The interface after static loading is as follows. The two fragments are located on the left and right of an activity respectively:     There is a Fragment on the left and a Fragment on the right, which just fills the whole activity. There can be multiple fragments in an activity. The meaning of fragments is that the interface can be divided int ...

Posted by iyia12co on Thu, 28 Nov 2019 04:01:54 -0800

Some explorations to save the game

To make an slg game, because the content of slg game is usually too long, it must be persisted Prior to 1. Set, load and save the custom game map format In java, you can directly use fileoutputstream and dataoutputstream public static void saveMapBin(MapBinDAO binFile, String Path) { try { FileOutputStream fs_out = new Fil ...

Posted by winkhere on Wed, 27 Nov 2019 08:02:45 -0800

Android Jetpack architecture component - Room in pit details

This article starts with WeChat public's "Android development tour". Welcome to pay more attention to get more dry goods. Room is a member of Jetpack component library, belonging to ORM library. It mainly makes a layer of abstraction for Sqlite, so as to simplify the operation of database by developers. Room supports syntax checking a ...

Posted by lordtrini on Wed, 27 Nov 2019 04:14:07 -0800

A plug-in for quick generation of Android shape -- NoCodeShape

I. Introduction to NoCodeShape NoCodeShape is an Android Studio plug-in that can generate shape.xml in Android through visual interface operation. The novice can better accept the corresponding attributes in Android, and the senior programmer can simplify the operation and generate shape.xml quickly. II. Usage of NoCodeShape 1. Download and ins ...

Posted by kfir91 on Wed, 27 Nov 2019 01:16:23 -0800

RxJava2 usage and source reading

What is RxJava?According to RxJava's description on GitHub:RxJava – Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java It roughly means:RxJava - A java library that runs on a JVM and implements asynchronous operations based on observer mode. The role of RxJava: ...

Posted by Smackie on Tue, 26 Nov 2019 20:15:07 -0800