Basic concepts of embedded Linux partition

background Partition is a means of dividing the disk into regions. By saving the starting address, size and other information to the partition table, the disk can be divided into several regions for storing different contents. The use of partitions can not only make the system file entries clear, compatible with multiple file systems and moun ...

Posted by mlla2 on Wed, 20 Apr 2022 23:55:15 +0300

Kotlin | these things you should know about Lazy

Hi, nice to meet you! 👋🏻 This article mainly shares Kotlin Lazy. I hope that after reading this article, it can help you better understand and use it. introduction Every student who uses kotlin will more or less use Lazy, whose Chinese translation is called delayed initialization. The function is also relatively direct. If we have an obje ...

Posted by Shawazi on Wed, 20 Apr 2022 18:55:05 +0300

Android architecture component -- ViewModel usage and source code analysis

1, Introduction to ViewModel The emergence of ViewModel mainly has the following considerations: (1) When writing an application, if too much logic is written in the Activity and Fragment, the Activity will become very bloated, which is not conducive to the maintenance of the code and violates the layered idea of the software. According to th ...

Posted by dancer on Mon, 18 Apr 2022 14:33:57 +0300

Detailed explanation of LiveData and MutableLiveData

preface LiveData and ViewMode are often used together, but in order to avoid confusion, I will separate them. This blog only explains the concepts and usage of LiveData and MutableLiveData (but it will involve part of the code of ViewMode) What does LiveData do? Since both LiveData and MutableLiveData are conceptual things (only with differe ...

Posted by ccalzaretta on Mon, 18 Apr 2022 01:36:23 +0300

TextView component developed by Android

TextView component 1. Length width attribute of text android:layout_width android:layout_height Press and hold Ctril and click layout_width or layout_height can view which values can be assigned. <enum name="fill_parent" value="-1" /> <enum name="match_parent" value="-1" /> <enum name="wrap_content" value="-2" /> The fu ...

Posted by jengle52 on Sun, 17 Apr 2022 15:21:36 +0300

Play with the linux system termux in the mobile phone and build a java development environment

target The Spring Festival is at home, and sometimes I have to go out. When you go out, no computer can write code. So what if you get addicted to code? I wonder if I can write code on my mobile phone? Mobile remote computer is a way, but remote development requires high requirements. First of all, you should have a computer that can be d ...

Posted by wtfsmd on Sun, 17 Apr 2022 14:50:29 +0300

Introduction to the integration of overseas map Here on Android

preface Speaking of the navigation map, whether on the mobile terminal or on the vehicle terminal, domestic car owners must use Gaode and Baidu most. Gaode has been deeply engaged in positioning and navigation functions, while Baidu has been layout in the O2O field for a long time, and many peripheral business services can be seen in Bai ...

Posted by inspire on Sun, 17 Apr 2022 03:29:56 +0300

"Adventure of Activity display interface" - talk about those unclear relationships of View

preface In the process of Activity displaying View, some important roles are always confused, such as PhoneWindow, DecorView and ViewRootImpl. There are often interview questions that ask, what is the relationship between the four of them? When was it created? When did View draw for the first time? And so on. Today, let's start from the star ...

Posted by wmhop on Sun, 17 Apr 2022 00:12:04 +0300

RxJava for Android developers

preface I started using RxJava last year and have been using it for more than a year now. After joining Flipboard this year, I saw that the Android project of Flipboard is also using RxJava, and there are more and more scenarios. In recent months, I also found that more and more people in China began to mention RxJava. Some people say " ...

Posted by simply on Sat, 16 Apr 2022 21:45:32 +0300

News, notification, broadcast and alarm clock of Android learning

catalogue 8. Message, notice, broadcast and alarm clock (2) Display on notification class 3. Notification status bar 4. Use of broadcastreceiver class 4-1. Introduction to broadcastreceiver class 4-2. Application of broadcastreceiver class 8. Message, notice, broadcast and alarm clock (2) 3. Use the Notification class to display notif ...

Posted by hakmir on Sat, 16 Apr 2022 16:42:11 +0300