Preliminary Study on Android JetPack Component-CameraX
CameraX is also a JetPack component from Google, which is a new gadget, so I want to share my experience in using it in my project.
What is CameraX?
The Google Developer Documentation gives you the following evaluation of AmeraX:
CameraX is a Jetpack support library designed to help you streamline the development of camera applications.It pro ...
Posted by a6000000 on Tue, 05 May 2020 12:14:10 -0700
Learning and summary of RecycleView
Since I contacted Android studio, I have a new understanding and desire to learn and master the new Android UI design concept and V7 package. Therefore, I have a special look at the use of the new control RecycleView, which is summarized as follows.
Its usage is similar to that of listview. It consists of three parts: adapter, arrangement and ...
Posted by andre_c on Tue, 05 May 2020 09:21:06 -0700
android.os.Build common constants
When doing a project, it is often necessary to collect some equipment information, but it is not often used, so sometimes it will query which interface the requirements meet, so it will be sorted out at the weekend
Build.ID; //Either a changelist number, or a label like "M4-rc20".
Build.DISPLAY; //A build ID string m ...
Posted by jkrettek on Mon, 04 May 2020 21:33:27 -0700
Serialization and deserialization of Gson
serialization and deserialization
Java serialization refers to the process of converting Java objects into transportable byte sequences, while Java deserialization refers to the process of restoring transmitted byte sequences to Java objects. These two processes make it very convenient for us to store and transfer dat ...
Posted by Buglish on Mon, 04 May 2020 14:43:19 -0700
Principle and Practice of Golang Context
Let's learn how to use the golang Context and how to implement it in the Standard Library.
The golang context package started as a Golang package used internally by Google and was officially introduced into the Standard Library in Golang version 1.7.Start learning below.
Brief introduction
Before learning about context packages, look at several ...
Posted by varsha on Mon, 04 May 2020 11:07:21 -0700
Two ways of analyzing Json data by Gson
0x00 foreword
At present, there are many interfaces in the form of Json on the network. Gson is Google's open-source Json parsing library, which can easily convert Java objects into Json strings, and also can easily convert Json strings into Java objects.
0x01 two ways to parse Json string
Suppose that the string we want to parse is the ...
Posted by ronthu on Mon, 04 May 2020 04:42:15 -0700
Build MVC project from scratch
Preface
This article mainly records how to build an MVP architecture. At the same time, it realizes the network request by combining with the mainstream frameworks such as Retrofit,RxJava,Okhttp, which is convenient for later review and rapid development.
Project subcontracting
Base: put some base classes, such a ...
Posted by VapiD on Sun, 03 May 2020 11:56:40 -0700
Integration of Google map correct signature packaging posture
After integrating Google Map, everything is normal in debug mode. The map is displayed normally. After signing and packaging, the app runs and finds that the map is not displayed
After a stack overflow, This is the solution
The reason is that the applied Google map API [key] is placed in the debug folder, and there is no corresponding rel ...
Posted by Supplement on Sun, 03 May 2020 02:44:57 -0700
JS remove the space before and after the string or remove all spaces
From script house:
This article mainly introduces the use of JS to remove the spaces before and after strings or all spaces. Please refer to the following for your friends:
The code is as follows:
function Trim(str)
{
return str.replace(/(^\s*)|(\s*$)/g, "");
}
Description:
If you use jQuery to directly use the $. trim(str) method, str r ...
Posted by codeDV on Sun, 03 May 2020 00:01:51 -0700
Go language learning (ten) bytes packet processing byte slice
The bytes package provides a series of functions for reading and writing byte slicesThere are many functions for byte slicing, including basic processing function, comparison function, suffix check function, index function and partition functionCase handling function and sub slice handling function, etc
1. Basic processing function api of byt ...
Posted by Fari on Sat, 02 May 2020 10:52:58 -0700