Get CameraManager object
CameraManager mCameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE);
mCameraManager.openCamera(cameraId, callback, handler);
The openCameraDeviceUserAsync method in CameraManager is called
private CameraDevice ...
Posted by kkobashi on Sat, 09 May 2020 17:05:58 +0200
This paper mainly introduces the swiper configuration options, including unlimited scrolling, lazy loading, monitoring the current position, page up and down, transition animation gradient, delay loading pictures, automatic rotation, etc;
Front end code:
Tips: because JQ is the rigid demand of the front end, the demons ...
Posted by gilgimech on Fri, 08 May 2020 18:10:59 +0200
Js related technology
How to get all check boxes: document.getElementsByName
When we deal with forms, in some cases, we need to deal with forms in batches
First method: selector [property name = 'property value']
Posted by anthonydamasco on Wed, 06 May 2020 18:02:16 +0200
Please be patient to read this module because of its large content and length.
Exercise module is divided into two parts
[x] Exercise List Interface
[x] Exercise details interface
1. Exercise List Interface
1. Exercise Interface
(1) Create exercise interface
In the res/layout folder, create a new layout file named main_view_exercises.
Posted by sheraz on Tue, 05 May 2020 23:18:23 +0200
Wechat small program -- Realization of message board
Main function points:
The border of rich text can automatically match the screen size;
Displays the number of words entered in rich text;
Get content in rich text and submit message;
Pop up window after submitting message;
Corresponding. wxml content
Rich text is displaye ...
Posted by bradles on Tue, 05 May 2020 19:37:53 +0200
Using JS to complete simple data verification
Use JS to complete the simple data verification of the registration page. It is not allowed to leave the user name or password blank
from form property -- onsubmit must have a return value. If it is true, the submit is successful. If it is false, it cannot be ...
Posted by guayaquil on Tue, 05 May 2020 18:15:24 +0200
1 unit conversion
Due to the different screen density, the length of the same pixel size and the length displayed on the screen with different density are different. The following is the conversion formula of each density value,
In mdpi, 1dp = 1px,
In hdpi, 1dp = 1.5px,
In xhdpi, 1dp = 2px,
In the xxhdpi, 1dp = 3px ...
Posted by nite4000 on Mon, 04 May 2020 23:57:40 +0200
Mobiscrol is a very useful plug-in for mobile terminal sliding selection. It can be used to select dates, simple options or some complex tree structure options. Simple sharing.
The dependency is also relatively simple, just introduce a mobiscrol-2.13.2.full.min.js file and a mobiscrol-2.13.2.full.min.css file. Download directly mobiscrol ...
Posted by travelbuff on Mon, 04 May 2020 23:24:12 +0200
Android exception capture and write text
The developed software application inevitably has various problems in the actual scene, but the developers can't debug in real time on the spot, and the remote can't present the scene, so that
It can't solve this problem. The best solution is to integrate Tencent's mobile anal ...
Posted by .Darkman on Mon, 04 May 2020 19:04:05 +0200
Android integrated Baidu character recognition 1.4.0
Baidu AI open platform has opened the service of character recognition, which can realize the recognition requirements of some general characters, network pictures and characters, various cards (ID card, bank card, driver's license, driving license, license plate bus ...
Posted by Drewser33 on Mon, 04 May 2020 13:43:54 +0200