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 reads the content of scanning gun (barcode)
Recently, there is a demand that the Android device is connected with a code scanning gun, and the system reads the scanning content of the code scanning gun.
I checked some examples on the Internet, but it was not easy to use them. Finally, I realized one by myself (only English letters and symbols are supported at present).
...
Posted by Guernica on Mon, 30 Dec 2019 11:32:39 -0800
[FAQ03426] when there are multiple launchers in the system, how to set the default launchers to enter automatically after power on?
[DESCRIPTION]
After power on and unlocking, if there are multiple launchers in the system, a selection box will pop up to let the user choose to enter a launchers. If the user does not want to select, but wants to directly enter a default Launcher, how to modify it?
[SOLUTION]
Note: this modification method is not valid for ...
Posted by PHPist on Sun, 29 Dec 2019 08:58:47 -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
Use JavaMail API to send email in Android without using default / built-in application
I'm trying to create a messaging application in Android.
If I use:
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
This will launch the built-in Android App; I tried to send mail without using this app by clicking the button directly.
#1 building
This is an alternative version, which is also useful for me, wi ...
Posted by michaeru on Sun, 29 Dec 2019 04:50:43 -0800
Be elegant!Load large and long pictures like this in Android
When developing, we will inevitably encounter the situation of loading pictures. When the size of pictures is smaller than the size of ImageView, we can certainly happy to load the display directly.
But if we load a picture that is much larger than the size of the ImageView, displaying it directly with the ImageView will have a bad visual effe ...
Posted by elgordo1960 on Sat, 28 Dec 2019 15:16:15 -0800
Android work experience Fragment management
Fragment, or fragment for short, is proposed by Android 3.0 (API 11). In order to be compatible with the lower version, a set of Fragment API has been developed in support-v4 library, which is at least compatible with Android 1.6.
In the past, the support-v4 library was a jar package. Since version 24.2.0, the support-v4 libra ...
Posted by ploppy on Sat, 28 Dec 2019 11:37:32 -0800
Android drawing separator / separator in layout?
I want to draw a line in the middle of the layout and use it as a separator for other items such as TextView. Is there a good widget. I really don't want to use images because it's hard to match other components to it. I hope it can also be relatively positioned. Thank you
#1 building
I usually use this code to add horizontal lines:
&l ...
Posted by dzm on Sat, 28 Dec 2019 09:22:34 -0800
Android native of React Native sends messages to js through deviceeventtwitter
1 problem
Android sends messages to js natively and can carry data
2 implementation principle
Android native can use RCTEventEmitter to register events, then you need to specify the name of the event here, and then listen to the name of the same event on the js side, and you can receive the message and get the data
...
Posted by timclaason on Sat, 28 Dec 2019 08:13:27 -0800
Android Bluetooth 4.0 ble basic communication
This blog focuses on Android Bluetooth BLE basic communication.
1, Add permission
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
However, after Android 6.0, you need to dynamically apply for location permission.
<uses-permi ...
Posted by xeelee on Sat, 28 Dec 2019 07:53:28 -0800