android calls system camera to take multiple photos
Android calls the system camera once, takes multiple photos and returns them to activity. In fact, Android does not provide such an api, but it can achieve this function in other ways.
Idea: write down the time stamp before calling the system camera, and then go to the system picture media library to query the pictures whose c ...
Posted by mac25 on Tue, 31 Dec 2019 03:46:33 -0800
Mobile (mobile) page adaptive solution - rem layout
Let's assume that the size of the design draft that my sister gave us is 750 * 1340. Combined with the dynamic font size attribute, design draft size and collaboration process between the front end and design on the html element of the home page of Netease and Taobao mobile terminal, they are generally divided into the following two types:
1. N ...
Posted by AlGale on Mon, 30 Dec 2019 23:47:58 -0800
How to solve the problem that html page can't use template page
For HTML+ajax development front-end, many times the page will have some fixed content, such as a switch at the bottom, which is equivalent to a tab. Many pages will use it. It is certainly not wise to write one page.
Once used ifream to implement, ha ha...
Use a js file and pull one for each page. This is also OK. Every time ...
Posted by dmarchman on Mon, 30 Dec 2019 22:18:09 -0800
rem, viewport, 1px adaptation
###rem adaptation
Advantages: meta tags can be used to achieve proportional scaling
Disadvantages: conversion is difficult
Core idea: Based on REM, the element unit in layout is rem, and the font size of html root element is set to screen width
rem adaptation: large design drawings and relatively many elements (750px,1080px)
...
Posted by (RL)Ian on Mon, 30 Dec 2019 13:51:16 -0800
Android can print multiple APP packages in the same set of code and install and run on the same mobile phone
Android can print multiple APP packages in the same set of code and install and run on the same mobile phone
Android can print multiple APP packages in the same set of code and = = install and run on the same phone = =, and = = APP name and desktop icon are also different==
Give different package names to the same set of code ...
Posted by darkhappy on Sun, 29 Dec 2019 07:33:06 -0800
Angular5 + custom form validator
Angular5 + custom form validator
Custom Validators
Labels (space separated): Angular
First of all, the following problems are described:
How to implement the verification of "reenter password" (equal value of two controller s) (equalTo)
How to listen in the reverse direction (first enter "enter password again", then enter ...
Posted by mcccy005 on Sat, 28 Dec 2019 06:51:27 -0800
Solution of page switching language (prefer small station, static page)
First of all, in the html structure, add the class name to all the structures that need to be converted, preferably to the nearest parent containing the text, because we need to use the text node to replace them.
Then construct data similar to json to facilitate replacement operation. You can also declare a variable flag to re ...
Posted by ccjob2 on Fri, 27 Dec 2019 10:53:51 -0800
Mobile page adaptive solution -- rem layout
If the UI gives us a design size of 750 * 1340.
Combined with the dynamic font size attribute, design draft size and collaboration process between the front end and design on the html element of the home page of Netease and Taobao mobile terminal, they are generally divided into the following two types:
1. Netease practice:
...
Posted by RobOgden on Fri, 27 Dec 2019 09:04:11 -0800
Sorting out the corresponding relationship between Android file operation api and path
I. briefly
In Android development, you often need to operate files. You have been unclear about the corresponding relationship between api and file path. Today, you have time to sort out the records so as not to forget them later.
ps: since there is no machine with SD card in hand, the following test results are all on the m ...
Posted by ChetUbetcha on Wed, 25 Dec 2019 11:02:15 -0800
Wechat applet development (6) - download files from the server and open them
The file downloaded by the wx.downloadFile interface of wechat applet is downloaded to the wechat server, and the return value is a temporary address. To save for a long time, call the wx.saveFile interface to save the file to the local cache. Although it is saved to the mobile phone, you cannot open it through the document man ...
Posted by courtewing on Wed, 25 Dec 2019 09:43:44 -0800