Drag and Slide of ViewPager Source Parsing

Summary The sliding of a ViewGroup must be related to its dispatchTouchEvent(), onInterceptTouchEvent(), onTouchEvent(). ViewPager rewrote the latter two. Let's look at them one by one. First of all, there are two ways for ViewPager to generate view movement based on gesture. One is to drag with finger when MOVE, the other is to slide to the ...

Added by starnol on Wed, 19 Jun 2019 21:00:11 +0300

bootstrap grid system

I'm learning bootstrap, mainly for its grid system. For its other css, it's not very useful. Grid system, generally speaking, is to divide the web page into 12 columns to adapt to the mobile and PC terminals, but it is mobile devices first, design smaller widths first, and add elements as the screen size increases. Working Principle and Co ...

Added by lice200 on Wed, 19 Jun 2019 04:22:06 +0300

Android Timer, CountDownTimer, Alarm Manager

First, Timer TimerTask Reference resources Timer in Java and TimerTask in Android In development, we sometimes have the need to perform a task at regular intervals. For example, controls on the UI need to change over time, and we can use Java's timer toolkit, timer and TimerTask. Timer is a common class, which has several import ...

Added by roberts78 on Wed, 19 Jun 2019 00:51:44 +0300

Android pedometer module (similar to Wechat movement)

Recently, the step counting module was studied in the project. It began to record the steps of the day at 0 o'clock every day, which is similar to the Wechat movement. Many pits have been encountered. Today, I have time to sort them out for you to see.Before doing this, we searched google, baidu, github and found no good ones. Most of them need ...

Added by Script200 on Mon, 17 Jun 2019 23:42:14 +0300

iscroll carton? Use JRoll to encapsulate the react plug-in and escape from Carton's routine!

I'm very sorry to have paid attention to the columnists, but there have been few updates in the last month. This time share a react mobile end encapsulated rolling plug-in. When we do vertical rolling on the mobile end, there will be various problems, such as carton, penetration, compatibility, and the most intolerable is carton, such as the us ...

Added by MathewByrne on Mon, 17 Jun 2019 03:32:34 +0300

Android for LED light display

Android for LED light display Project Address EZLedView project address Effect Graph a principle You often see this kind of display effect in billboards. Use LED lights to display text or even pictures. How do you achieve this effect in Android? The usual practice is to get bitmap information of the font and then calcul ...

Added by codesters on Sat, 15 Jun 2019 21:46:45 +0300

Android Mobile Live Broadcast (IV) Android Media API

I. Articles Description Recently, I have been too busy to update my articles for a long time. I have received a lot of news from my friends to urge me to update them. I am really ashamed to update them when I am free today. The first article introduced Android mobile live broadcasting in general, and then two articles introduced video and audio ...

Added by nhanlee on Fri, 14 Jun 2019 02:26:41 +0300

ios Bluetooth development (3) implementation of app being connected as peripheral

The last section describes app as a central connection peripheral. This section describes how to publish a peripheral to other central connections using app Or in this diagram, the central mode uses the left class, while the peripheral mode uses the right class Process in peripheral mode 1. Open the peripheralManager and set the deleg ...

Added by Gruzin on Wed, 12 Jun 2019 20:49:33 +0300

A familiar design pattern

Write before To judge whether a programmer is good or not is to show me the code.Good code readability, high cohesion, low coupling, scalability.To write good code and be a good programmer, you need to look at the open source framework written by Taurus, absorb the essence of it, learn more about design patterns, and there are no other shortcut ...

Added by serg91 on Mon, 10 Jun 2019 19:20:30 +0300

Bootstrap of Responsive Layout Values

1. Introduction to Responsive Layout It is compatible with multiple terminals on the website - rather than making a specific version for each terminal, which aims to provide users with a more comfortable interface and better user experience. Advantages and disadvantages: Advantages: (1) High flexibility in facing different resolution devic ...

Added by SlyOne on Sat, 08 Jun 2019 21:34:54 +0300