H5 page window automatically adjusts to device width and prohibits users from scaling pages
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
Ignore identifying numbers on pages as phone numbers
<meta name="format-detection" conten ...
Posted on Sun, 31 Mar 2019 10:39:30 -0700 by retoto
This article is based on Hongxiang Dashen's blog. http://blog.csdn.net/lmj623565791/article/details/39943731 Evolution, on the basis of God, further encapsulated photographs, prevent oom, select pictures and then call back.
The effect is shown in the figure. Click on the plus sign to pop up dialog. You can choose to take pictures from the came ...
Posted on Sun, 31 Mar 2019 08:39:28 -0700 by sw9
Reflections from Toast not properly displayed in Java due to closed notifications
In Android development, Toast was unable to work properly because of the shutdown of message notification, so it took its own way to maintain message queue to solve this is a small bug in the system.
Reflections are used in the solution ...
Posted on Sun, 31 Mar 2019 07:54:30 -0700 by Ozzmosis
Android's message mechanism mainly refers to the operation mechanism of handler and the working process of messageQueue and looper attached to handler. The reason why handler appears is that Android does not allow non-UI threads to perform UI operations. This is verified in checkThread () method of viewrootimpl:
void checkThread() ...
Posted on Sun, 31 Mar 2019 05:21:29 -0700 by retoknaak
Exploring the Difficulties of Android Soft Keyboard Deep Exploration of Android Asynchronous Essence Handler Detailing the indispensable cornerstones of Android's mainstream framework Stand on the shoulder of source code and fully understand Scroller's working mechanism
Android Multiresolution Adaptation Framework (1) - Core Foundation And ...
Posted on Sun, 31 Mar 2019 04:36:28 -0700 by tourer
The most common use scenario of Handler is download callback. In order not to affect user experience, Android does not support time-consuming operations in the main thread, long time-consuming operations will produce ANR exceptions, and download is undoubtedly time-consuming operations, so we will download in the sub-thread. However, after ...
Posted on Sun, 31 Mar 2019 02:18:29 -0700 by mmarif4u
Project address: https://github.com/googlesamples/android-architecture/tree/todo-mvp-clean/
The concept of this project is based on Clean Architecture.
The project architecture is based on the basics MVP Example. A domain layer was added between the presentation layer and the repositories layer. Overall, App is divided i ...
Posted on Sat, 30 Mar 2019 20:06:28 -0700 by lanjoky
Today, I inadvertently saw the technology God using Baidu Map to locate and realize the destination navigation of Demo. I think it's very good. I'll share it with you. Let's see how it works.
After entering, we will get the current position first, which will be displayed on the map. After entering the destination in the input box, we will fin ...
Posted on Sat, 30 Mar 2019 19:18:30 -0700 by danbot26
In Android development, the timeline UI is very common, as shown below:
1. Custom view Foundation2. Use of RecyclerView3. Customize RecyclerView.ItemDecoration
1. The final results are as follows:
2. Realization Ideas
Customize RecyclerView.ItemDecoration using RecyclerView
Review the getItemOff ...
Posted on Sat, 30 Mar 2019 15:00:29 -0700 by mrchuckles2002
As we know, TextView controls are generally used to display text, and images are usually displayed with ImageView controls.
Can TextView display pictures? The answer is yes! Here are four common ways.
Specify attribute values in an XML file
This should be the most common way to display pictures on the top left and bottom rig ...
Posted on Sat, 30 Mar 2019 14:39:28 -0700 by segwaypirate