Handler,Looper,Message's Understanding and Puzzlement
1. The Role and Relation of the Three
Mesage (message) is the medium through which the same or different threads interact, corresponding to an operation. Looper (Looper) is a prerequisite for creating handler. It is mainly used to create an instance of MessageQueue (message queue) of the current thread (a Looper corresponds to a Thread number ...
Posted by Anas_M.M.F on Fri, 07 Jun 2019 14:39:35 -0700
Android Gets delete Event from Soft Keyboard
For soft keyboard deletion events, there are many schemes on the web as follows, but google api also shows that this is just listening on the hardware keyboard and not triggering on the software keyboard (I tested that the soft keyboard can listen on the delete key, other keys like numeric letters do not trigger the listening method here).
e ...
Posted by spec36 on Fri, 07 Jun 2019 13:47:34 -0700
Analytical Method of json under Java--GSON and JSONObject
GSON:
Gson is a JSON format parsing package developed by google. It is characterized by knowing the JSON data format transmitted before parsing json, and defining a series of classes with the same hierarchical structure as json. In other words, if the JSON structure of the transmission is:
{
"name":"relin",
"sex":"male",
"a ...
Posted by Spaceboy on Thu, 06 Jun 2019 17:22:18 -0700
Twelve commonly used javascript abbreviation techniques - can greatly reduce the amount of js code
Wechat Public Number Personal Blog Know about
This article is not written by myself, but I think it is very helpful to me. So I share it with you. The original link is at the bottom. Thank you for watching.1. Null (undefined) verificationWhen we create a new variable, we usually verify that the value of the variable is null or undefined. ...
Posted by kkeim on Wed, 05 Jun 2019 12:31:47 -0700
Javascript Get Cache and Clear Cache API (reload)
From: http://geek.csdn.net/news/detail/199421
The benefit of the JavaScript ServiceWorker API is that it allows web developers to easily control the cache.Although technologies such as ETags are also used to control the cache, using JavaScript allows programs to control the cache more powerful and free.Of course, there are powerful benefit ...
Posted by (RL)Ian on Tue, 04 Jun 2019 10:12:04 -0700
How to Customize RecyclerView Click Events and Draw Split Lines - Advanced UI-2
1. Next to the previous blog we solved the RecyclerView Linear List Split Line drawing problem: 1. Effects:
We know that Google engineers don't have the same divider attribute set for RecyclerView as listView to draw split lines.So let's solve the RecyclerView problem today.The following results have been achieved:
2. Analyse how to dr ...
Posted by beckjoh on Tue, 04 Jun 2019 09:48:26 -0700
Samba client configuration
First, record how the linux client accesses the shared folder of windows or linux with commands
The first step is smbclient-L//192.168.100.5-U public (smbclient is the command-L is to list which shared files the server has-U followed by the user name)
The second step is to enter the password and see the folder shared by the server. Then you e ...
Posted by martincrumlish on Sat, 01 Jun 2019 15:13:50 -0700
Material Design: All you need is here.
Original works, reprinted please indicate the source
Material Design was briefly introduced in previous articles. Since Android 5.0, Google has designed all built-ins in the Material Design style. I personally like this style, so I have written a full Material Design style App for further study.
Project address: https://github.com/duya ...
Posted by pedroz on Sat, 25 May 2019 16:53:24 -0700
About Custom view and Animation Implementation in view
Now that I've studied customizing view s recently, I'll take a note: People might as well go to google developer and learn by themselves
Custom views are used to customize views for special effects or to implement complex layouts when you are unwilling to nest multiple views.
First, you need to inherit the View class, or if a feature compari ...
Posted by mickeyunderscore on Thu, 23 May 2019 09:34:07 -0700
Remember: instrument's leaks tool does not detect all memory leaks
iu
Written in front
There are many articles on using instrument ed leaks tools to detect memory leaks on the Internet, but almost no one mentions one detail: not all memory leaks can detect.
I used to think that if I used the leaks tool to run back and forth several times, I would be successful without showing a memory leak until I packaged a ...
Posted by Bilbozilla on Wed, 22 May 2019 11:54:47 -0700