What if there are too few JetPack Compose theme colors? Let's design our own color system
introductionThe official version of JetPack Compose has been released for several months. During this period, in addition to business-related requirements, I also started the landing experiment of Compose in the actual project, because once I want to access the current project, the problems encountered are actually far greater than those requir ...
Added by jtown on Tue, 28 Dec 2021 21:05:50 +0200
Audio and video 7 - rtmp use of Android hard coded push to rtmp server
Audio and video development route:
android audio and video development getting started guide_ Jhuster's column technology blog_ 51CTO blog_ Introduction to android audio and video development
demo address:
RTMPDemo
I RTMP usage process
The api calling sequence of rtmp protocol is as follows:
II Initialize RTMP and connect to the serve ...
Added by HeyRay2 on Tue, 28 Dec 2021 11:04:44 +0200
[crawler series] 2. Open the App reverse "Pandora's box"
[crawler series] 2. Open the App reverse "Pandora's box"1, ForewordIn recent years, most products either have limited Web-side functions or have no Web-side directly. It is becoming more and more difficult to grasp data directly from the Web-sideGrasp the basic operation of HTTP requests through the proxy software (whistle | fiddler|C ...
Added by murtuza.hasan.13 on Tue, 28 Dec 2021 01:48:02 +0200
Android navigation components: basic knowledge of Navgation usage details and source code interpretation
When the activity returns, it will carry data. We can get it directly from onActivityForResult
What do we need to do with navigation?
In fact, there are many methods to return data! First: Use the LiveData mode provided by the system; The method is to get the LiveData of the last returned entry: usage method: BFragment setting data to A
Nav ...
Added by ultk on Tue, 28 Dec 2021 01:37:42 +0200
Learn about event distribution details of Android View
preface:
According to the custom MyButton button button, we set the listening event for this button, and understand the event distribution through the output log.
1, MyButton class
public class MyButton extends AppCompatButton {
public MyButton(Context context) {
super(context);
}
public MyButton(Context context, Attribu ...
Added by neoform on Tue, 28 Dec 2021 00:39:13 +0200
Android 10 (q) system source code compilation
I. hardware environment
In Ubuntu 18 The following conditions are required to download and compile the Android 10 (q) source code in the system 1. At least 4G memory, less than 4G memory. Waiting during compiling the source code will be very painful 2. At least 200G hard disk, the larger the better I used a virtual machine in the compilati ...
Added by cutups on Tue, 28 Dec 2021 00:38:07 +0200
Flutter learning - Implementation of flutter plug-in (flutter calls Android native)
Original address: Flutter learning (9) -- implementation of flutter plug-in (flutter calls Android native) | small nest of stars one
Recently, we need to add apk integrity detection to a Flutter project. We need to get the md5 value of the currently installed apk. Because it cannot be implemented in Flutter, we need to call the native Android ...
Added by munuindra on Mon, 27 Dec 2021 20:50:44 +0200
Glide source code is difficult to understand? Use this angle to get twice the result with half the effort!
preface
A powerful framework requires a variety of packages. When we dive into it, it is easy to be confused by all kinds of jumps, design patterns, packaging, etc. in the source code;
In this case, we can only understand the general process, but it is easy to forget. Why?
Because we haven't really understood it!
We don't turn it into our k ...
Added by sri_hai1986 on Mon, 27 Dec 2021 19:43:34 +0200
Android learning notes - Material style
Material style
01 slide menu
1 DrawerLayout
drawerLayout is a layout container There are two child controls inside, the first is the main screen control, and the second is the sliding menu The second control must specify layout_gravity
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.Dr ...
Added by stitchmedia on Mon, 27 Dec 2021 17:57:43 +0200
Introduction to Android | principle analysis of Android SparseArray
What is SparseArray?What data structure does its internal implementation adopt?What are the advantages and disadvantages of SparseArray compared with HashMap?What is SparseArray?SparseArray stores key value pairs, with int as the key and Object as the value. Sparse means sparse and missing. SparseArray application scenarios are relatively scarc ...
Added by tmswenson on Mon, 27 Dec 2021 15:14:29 +0200