d3.js to realize slow motion animation

d3.js to realize slow motion animation d3.js to realize slow motion animation 1.js code 2. The animation effect is as follows: Recently learning d3.js , when looking at the latest version of d3.js (v5), we found that there is a function library to achieve the effect of slow motion animation, smooth animation. ...

Posted by habs20 on Wed, 01 Apr 2020 19:25:21 -0700

Ali Dashen teaches you ViewGroup dynamically. Do you still want to see it?

brief introduction Recently, there was a need for nine-picture control similar to WeChat circle of friends in the project. Github looked for it and found that they did not meet the needs. When I need a single picture, I can adjust it to a certain range according to the aspect ratio of the picture. Most open source projects have a single pictu ...

Posted by st0rmer on Wed, 01 Apr 2020 18:38:04 -0700

Custom turntable

In the first part of the new year, I wrote a custom turntable. At present, there are two modes. The specific effects are as follows: Mode 1: pointer mode When the turntable is stopped, the data at the initial position can be obtained As shown in the figure below is the initial state, 0 is the initial position (in the coordin ...

Posted by raghavan20 on Wed, 01 Apr 2020 18:20:37 -0700

Android imitation Alipay numeric keypad

brief introduction In some apps with payment function, the password can only be a pure number. Although we can specify that the EditText input box can only be a number, in order to provide user experience, we tend to use a custom pure number keyboard. Effect of this paper: Customize KeyboardView Implementation steps: ...

Posted by rationalrabbit on Wed, 01 Apr 2020 11:56:38 -0700

A study of Ignite CS mode java

In the form of command line, expanding cluster is to increase Server continuously , in many practical business scenarios, we need to implement CS pattern with Ignite, and this article will provide detailed code. Major maven dependencies: <dependency> <groupId>org.apache.ignite</groupId> ...

Posted by Bit343 on Wed, 01 Apr 2020 04:33:11 -0700

Use of vue mint LoadMore component

address http://mint-ui.github.io/docs/#/en2/loadmore   Implement pull-down refresh at the top and pull-up load at the bottom   autofill property is to automatically load data. You can choose whether to load by yourself or automatically load components according to the situation. Loadbotom will be called Top method is a function of pull-do ...

Posted by ik on Wed, 01 Apr 2020 02:01:18 -0700

Four components of Android content resolver

ContentResolver For complete code see: longlong's github Standard format for content URI s:   content://com.example.app.provider.table1   content://com.example.app.provider.table2 The content URI is mainly composed of two parts: authority and path. The authority is generally named by package name. Path: disti ...

Posted by nainil on Wed, 01 Apr 2020 01:40:07 -0700

Development of React Native -- component progressbaradroid

Preface ProgressBarAndroid is a real native encapsulation of the display progress component of Android platform, which is used to display the content loading progress in App. This article is mainly familiar with the following attributes: Color: set the color attribute value of the progress indeterminate: set whether to display ...

Posted by kfir91 on Wed, 01 Apr 2020 00:26:32 -0700

Asynchronous application of Generator in ES6

1, introduction Asynchronous programming is too important for the Javascript language. The execution environment of Javascript language is "single thread". If there is no asynchronous programming, it cannot be used at all. It must be stuck. Now I'll focus on how the Generator function performs asynchronous op ...

Posted by praeses on Tue, 31 Mar 2020 22:29:28 -0700

maven project integrates official wechat payment v3.0.9 (spring boot sample version)

Former by: recently made wechat payment in java, checked the maven warehouse of wechat payment sdk, and found that the latest update was on March 16, 2017, and the version number stayed at 0.0.3: <!-- https://mvnrepository.com/artifact/com.github.wxpay/wxpay-sdk --> <dependency> <groupId>com.github.wxpay</groupId> ...

Posted by edwinlcy on Tue, 31 Mar 2020 20:09:14 -0700