Tag:lifecycle

  • Android RxLife is a lightweight RxJava life cycle management library (1)

    Time:2019-10-11

    brief introduction RxLife is a lightweight RxJava Life Cycle Management Library. The code is extremely intrusive, ready-to-use, and does not require any preparation to support pipeline disconnection in any Activity/Fragment lifecycle approach. principle RxLife captures the life cycle changes of Activity/Fragment through Lifecycle under Jetpack and passes throughObservable.lift(ObservableOperator)Operator, inject the Observer object that you implement […]

  • Android RxLife is a lightweight RxJava life cycle management library (2)

    Time:2019-10-9

    In Android RxLife, a lightweight RxJava Lifecycle Management Library (1), we explainedlift,composeThe use of these two operators, and how RxJava causes memory leaks, and how RxLife solves RxJava memory leaks. No more explanations here. If you haven’t seen it yet, please read back. This article mainly explains the use and function of as operator in […]

  • Detailed usage of the Android life cycle component Lifecycle

    Time:2019-4-24

    Preface At the Google I/O conference in 2018, Google released Android Jetpack, which it calls the next generation of Android components, to help developers speed up application development. To be precise, Jetpack is a collection of Android software components, including basic components, architecture components, behavior components, and interface components. Android Architecture Components refers to the […]

  • Life Cycle Component Lifecycle Source Parsing (I)

    Time:2019-4-6

    In the previous article: The detailed usage of Lifecycle, an Android life cycle component, we talked about the simple use of Lifecycle. In this article, we will study the source code of Lifecycle. Foundation Environment Construction First of all, according to the previous article, build the environment quickly. Add Lifecycle lightweight dependency libraries: implementation “android.arch.lifecycle:runtime:1.1.1” […]