Media queries, common layouts on mobile, and more

Media Query If you've used the bootstrap framework, you should be familiar with media queries!(Link to bootstrap: bootstrap Chinese Network) Volume queries are CSS styles that can be set based on the characteristics of the device's display (viewport width, screen scale, device orientation - horizontal or vertical, etc.) Why does responsive des ...

Posted by Nick~C on Sat, 13 Jul 2019 19:09:40 +0200

Priority Queue Implementation Principle Analysis

Introduction Priority queue is a widely used data structure in practical projects. Whether it is in the process scheduling of the operating system or in related graph algorithms such as Prim algorithm and Dijkstra algorithm, we can see the appearance of priority queue. In this paper, we will analyze the implementation principle of priority queu ...

Posted by owner on Sat, 13 Jul 2019 18:20:36 +0200

Android Development-Bluetooth

- Restore content to start Preface Lonely fragrant self-admiration, a package of fanghua; Humanity is cold and warm, free in the heart; Climbing high and looking far ahead; Laugh and lie. The last article introduced the basic use of Bluetooth, writing demo is not very perfect, I hope you gods can correct. In the past two weeks, due to the progr ...

Posted by docmattman on Thu, 11 Jul 2019 20:40:19 +0200

Application of HandyJSON and SwiftyJSON

1. Application of HandyJSON In order to achieve serialization and deserialization through HandyJSON, we must implement HandyJSON protocol, which does not need to inherit NSObject objects, and implement public init(){} method. Serialization and deserialization support struct and enumerate types. HandyJSON supports non-basic types var bool: B ...

Posted by phpnewbie81 on Thu, 11 Jul 2019 00:42:00 +0200

Mobile Camera and Album (1): Basic Call and Photo Cutting

There are many system controls in Android system that we often use in our daily development, such as keyboard, camera, album, telephone, short message and so on. Today, the Tao Chief speaks about the basic calls of mobile phone albums and cameras, the system's own cuttings and customized cuttings. Let's get up... Basic Call of Camera Jump ...

Posted by shareaweb on Thu, 11 Jul 2019 00:36:56 +0200

TeamTalk Server-side Analysis of Server-side and Client-side Processes

Original: www.bluefoxah.org/teamtalk/server_flow.html Preface In the previous article, we simply analyzed the configuration of each server. In this article, we simply analyzed the whole operation process of TeamTalk server. Server-side process There is no strict sequential process for the start-up of the server, because each end ...

Posted by puja on Thu, 11 Jul 2019 00:32:13 +0200

Fuzzy Problem of Small Icon in Mobile End

As mentioned in the previous article The Problem of Vertical Direction Misalignment between Pictures and Texts In one of the small examples, I used a small icon, which I used a background image to show: .del .icon{ display: inline-block; width: 20px; height: 25px; margin-right: 5px; vertical-align: middle; background: url("imgs/delete.png") no ...

Posted by Donovan on Mon, 08 Jul 2019 03:41:18 +0200

Building a Simple Internet of Things Server and Client-Bluetooth Control (16)

Bluetooth is used to control the device, so USART1 of the board is used for computer serial port, USART2 is used for wifi transmission, USART3 is used for Bluetooth control. Bluetooth is chosen to prevent remote control devices (mainly wifi control protocol will not be written.)Code address: https://github.com/klren0312/stm32_wifi2017.4.19 Buil ...

Posted by HP400 on Sun, 07 Jul 2019 23:32:48 +0200

Android meets Drag and Drop by chance

Recently, during the iteration of the project, I encountered some knowledge points about Drag And Drop, so I made some simple explorations on this knowledge point and recorded my experience in using it. Design sketch GIF.gif Requirements introduction Drag the pictures provided in the question stem to the answer box for sorting. The pictures i ...

Posted by bgbs on Sun, 07 Jul 2019 21:29:40 +0200

Android Imitates Huawei Weather Drawing Dial

Design sketch You can see that this custom control combines color gradient, dynamic drawing scale and dynamic water polo effect. Next, let's see how this effect can be achieved step by step. Start customizing controls Like many custom controls, you need to base a View or a ViewGroup. I chose View here, as follows: public class HuaWei ...

Posted by nc_brox on Sun, 07 Jul 2019 00:50:54 +0200