Picture Upload Preview, Compression and base64 Details (dShowImg64.js)

hello, everyone, the game has started. Welcome to this issue. This is a preview of the image upload. Finally, send source links.Don't talk too much nonsense. First picture. To upload images Click on the blue box, the pc can select the file, the mobile terminal can choose to take photos or select pictures to upload. Part HTML <div class="i ...

Posted by Garethp on Mon, 28 Jan 2019 21:45:14 -0800

net Design Patterns (Factory Method) Learning Notes

Use design patterns only to solve one kind of problem. When solving the current one, it usually brings other problems when solving this problem. net Design Patterns (Factory Method) Learning Notes Summary: Add new creation objects or delete old ones for simple factories. It involves modifying the code in a simple factory ...

Posted by kireol on Mon, 28 Jan 2019 19:27:14 -0800

Drawer Layout+Navigation View+ToolBar for Android Project Realization of Drawer Side Bar Effect

Design sketch Add dependency Because of the use of Drawer Layout under v4 package, Toolbar under v7 package and Navigation View under android.support.design, the following configuration needs to be made in gradle: v4 Packet system introduced by default compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android. ...

Posted by cqinzx on Mon, 28 Jan 2019 18:48:15 -0800

Android's problem of masking other controls in the normal order of Button controls in layout

In a relative layout, there are four bottom navigation bars of normal app, which are displayed in equal proportion by weight, but if Button and other custom controls (including non-custom controls) are placed in the relative layout of one proportion, then there will be the problem of Button covering other controls in the layout ...

Posted by mathieumg on Mon, 28 Jan 2019 17:09:15 -0800

Talk about the Material Design Design of Android (V) - Foldable Title Bar

1 Collapsing Toolbar Layout layout Collapsing Toolbar Layout is based on the layout of Toolbar. It can make the effect of Toolbar more gorgeous. ** Note: ** Collapsing ToolbarLayout can only be used as a direct sublayout of AppBarLayout. Now let's create an empty activity to show the details of the cat: Then we write the inte ...

Posted by shedokan on Mon, 28 Jan 2019 14:00:15 -0800

Zero-Start Driver Development, linux Driver (26, Samsung Frameebuffer)

The framebuffer device of Samsung platform is built based on platform bus. It is divided into two parts: Part one is the general operating interface and configuration interface for all processors of Samsung, which is called driver in platform bus. The other part is the LCD-related time series, resolution and other easily var ...

Posted by jonah on Mon, 28 Jan 2019 12:51:14 -0800

didFocus and didBlur of React Native

1. didFocus and didBlur Explanations didFocus - the screen focused (if there was a transition, the transition completed) didBlur - the screen unfocused (if there was a transition, the transition completed)   didFocus means that the current page will be called once when it is first loaded. didBlur is called once when the cu ...

Posted by Jarl on Mon, 28 Jan 2019 12:06:14 -0800

A Simple Method for Button Events in ListView Subcontrols in android

A simple method for button events in a ListView child control in android. I look for information, refer to CSDN JZHowe Method A universal adapter for event handling of control in item of ListView was established. The adapter code is as follows: //Inheriting SimpleAdapter public class ListViewAdapter extends SimpleAdapter { ...

Posted by Noctagon on Mon, 28 Jan 2019 09:18:15 -0800

QNYGKit-iOS Dynamic Layout Framework Based on Yoga

QNYGKit iOS Dynamic Layout Framework Based on Yoga. QNYGKit framework github address What is Yoga? Yoga is a cross-platform layout engine that implements Flexbox specification. It is implemented in c language with high efficiency. What is FlexBox? flexible box modules (currently recommended as w3c candidates) are designed ...

Posted by Vebut on Mon, 28 Jan 2019 08:12:15 -0800

Automatic Reading Course--Five Apps

Here are five steps to achieve automatic reading. (android phone only) I. Connecting Mobile Phones to Computers First connect the mobile phone to the computer with usb cable, then start menu. cmd opens the console and enters adb devices. The following page will appear: This is to remember the string. This is the name of your cel ...

Posted by plutarck on Mon, 28 Jan 2019 03:54:14 -0800