Solve the pain points in Android development with Kotlin Flow

prefaceThis paper aims to illustrate how to use Kotlin Flow to solve the pain points in Android development through actual business scenarios, and then study how to use Flow gracefully and correct some typical misunderstandings. For the introduction of Flow and its operator usage, please refer to asynchronous Flow - Kotlin language Chinese stat ...

Posted on Thu, 25 Nov 2021 21:01:24 -0500 by Pegasys

Detailed explanation | building a responsive UI for foldable devices

Optimize your application for foldable devices and large screen devices The screen size of Android devices changes with each passing day. With the increasing popularity of tablet and foldable devices, it is particularly important to understand the window size and status of your application when developing a responsive user interface. Je ...

Posted on Thu, 25 Nov 2021 19:48:09 -0500 by yuan

RecyclerView source code analysis LinearLayoutManager drawing

prefaceThe previous article introduced the rendering framework of RecyclerView and learned that the specific rendering of RecyclerView and its sub views is realized through onLayoutChildren and setMeasuredDimension in LayoutManager.As a component of RecyclerView, LayoutManager is responsible for the layout drawing of items and the recycling and ...

Posted on Thu, 25 Nov 2021 16:24:04 -0500 by phpshift

Android 12 - tracking weapon WinScope

1. Introduction In the development process, we often encounter various window problems, such as animation exception, window exception, flashing screen, black screen, misplaced display In the past, we can solve these problems by adding logs, debugging and analyzing code, but these UI problems often appear in a moment, and it is difficult to gr ...

Posted on Thu, 25 Nov 2021 00:16:06 -0500 by tannerc

Android 12 - Letterbox mode

1. Introduction With the emergence of more and more large screen and folding screen devices, many applications do not adapt the UI of devices of different sizes. At this time, applications choose to display with a specific aspect ratio (although Google does not recommend this, the official still hopes that developers can carry out adaptive lay ...

Posted on Wed, 24 Nov 2021 21:20:35 -0500 by dnszero

Android learning column - practical project cool weather creates databases and tables

Series articles Tip: go to the Android learning column and watch more! Click me directly – > Android learning column In this project, pay attention to the modification of the package name prefix and change it to your own. My package name is: com.example.coolweather, otherwise an error will be reported. preface Refer to Mr. G ...

Posted on Wed, 24 Nov 2021 18:30:18 -0500 by 3dron

Common Davlik bytecode interpretation and APK cracking process for Android reverse

Cracking process Android program cracking process: decompile - > analyze - > Modify - > decompile - > sign. These operations are performed on the command line. Of course, there are also tools that integrate these operations: macos: Android-Crack-Tool Windows: Android Killer Relevant knowledge register The concept of register ...

Posted on Wed, 24 Nov 2021 01:39:53 -0500 by abda53

STM32 ~ configure the clock frequency [this article takes you to solve the STM32 main frequency configuration], with answers + test points

  users can configure the frequencies of AHB bus, high-speed APB2 bus and low-speed APB1 bus through multiple prescalers. The maximum frequency of the AHB and APB2 domains is 72 MHz. The maximum allowable frequency of APB1 domain is 36 MHz. The clock frequency of SDIO interface is fixed as HCLK/2. The 40 kHz LSI is used by the independent ...

Posted on Tue, 23 Nov 2021 21:50:04 -0500 by hawk72500

"Finally understand, meituan Android interview

//build.gradle //Note that the data types in gradle.properties are all String types, and other data types need to be converted by themselves if (isModule.toBoolean()){ apply plugin: 'com.android.application' }else { apply plugin: 'com.android.library' } 3.1.2 dynamic configuration of ApplicationId and AndroidManifest We know that an ...

Posted on Tue, 23 Nov 2021 19:23:21 -0500 by achilles

Mobile development technology (Android) -- Experiment 8 use of SQLite database

1, Experimental purpose Master the method of creating SQLite database;Master the methods of adding, deleting, modifying and querying SQLite data;Learn to use debugging tools to view databases and data tables; 2, Experimental content Create an Android project named "shiyan0801_ professional"_ ××× (name of stude ...

Posted on Tue, 23 Nov 2021 17:59:59 -0500 by leena