paging goes from use to abandonment, and then to use

Remember that the paging framework should have been used in version 2.0. But to be honest, if I want to realize paging Dehua, I must first write a lot of code and go around. No matter how encapsulated, the amount of code will not be small. Layering is clear to the dog. However, at present, we are so busy that we can't use it out of the box. I r ...

Posted by alex_funky_dj on Mon, 21 Feb 2022 07:31:54 +0100

[advanced Android] write a simple Android TV application with Jetpack Compose

prefaceI'm curious about how Jetpack Compose, as a new interface toolkit, will be used on the TV side. After all, the existing leanback library is not very easy to use, and it's very difficult to customize. As a result, most individual open-source TV projects look the same;With the release of the official version, I want to study Jetpack Compos ...

Posted by OopyBoo on Sun, 20 Feb 2022 17:34:57 +0100

Paging3 make complaints about Tucao.

This article is also published in my WeChat official account. It can scan the two-dimensional code at the bottom of the article or search for Guo Lin in WeChat. Good morning, guys. With the official release of Android 11, the Jetpack family has also introduced many new members. I promised before that I would write an article to introduce th ...

Posted by mrgrinch12 on Sat, 19 Feb 2022 23:10:31 +0100

Kotlin's coordination process starts and cancels the coordination process

Builder of collaborative process Both the launch and async builders are used to start new processes launch, which returns a job without any result value async returns a Deferred, which is also a job and can be used await() gets its final result on a Deferred value //Wait for a job: join and await private fun runBlocking1(){ // ...

Posted by jcornett on Wed, 19 Jan 2022 12:59:40 +0100

Jetpack: use ActivityResult to handle data communication between activities

catalogue Foreword ActivityResult usage ActivityResultContract principle summary Foreword This article first introduces the basic use of ActivityResult, and finally discusses the principle behind it through the source code. In Android, if we want to transfer data between activities in two directions, we need to use startActivityFor ...

Posted by fractalvibes on Tue, 04 Jan 2022 17:51:42 +0100

android_ jetpack_ Property (icon, text) setting of bottomnavigationview

Bottom navigation bar The bottom navigation bar is commonly used. At present, almost all commonly used apps use the bottom navigation bar to classify the content. The implementation of the bottom navigation bar is also relatively simple, which can be implemented in a user-defined way. Usually, each item is composed of an icon and title, and th ...

Posted by wezalmighty on Tue, 04 Jan 2022 05:34:59 +0100

Use of Android Jetpack Room

The official website link uses Room to save data to the local database | Android Developers | Android Developers https://developer.android.google.cn/training/data-storage/room?hl=zh_cn Room is used to process the database. It provides an abstraction layer on SQLite to make full use of the powerful functions of SQLite and smoothly access the da ...

Posted by bubblybabs on Mon, 03 Jan 2022 17:00:12 +0100

Use of Android Jetpack WorkManager

The official website link uses WorkManager to schedule tasks | Android Developers | Android Developers https://developer.android.google.cn/topic/libraries/architecture/workmanager WorkManager is an API that allows you to easily schedule reliable asynchronous tasks that should run even after exiting the application or restarting the device. Wo ...

Posted by mr02077 on Tue, 28 Dec 2021 08:26:52 +0100

Android jetpack dependency injection framework - hit Getting Started Guide

I Hilt introduction Hilt is the product of secondary packaging of Android official on the basis of relying on Dagger. Students who have studied Dagger will find that as a dependency injection framework, Dagger has powerful functions, but the high learning threshold makes the landing cost of Dagger on Android very high. In order to solve the ab ...

Posted by blyz on Sat, 25 Dec 2021 20:35:47 +0100

Use of ViewModel, Flow, Hilt and Coil in Jetpack Compose

Compose can be used with multiple Jetpack components Compose can cooperate with the development of multiple Jetpack components to improve development efficiency Multiple combinations Use composite with ViewModel summary The use of ViewModel in Compose is consistent with Jetpack. Usually, when we build a page, if one piece of data needs to ...

Posted by jmboblee on Fri, 24 Dec 2021 19:47:38 +0100