Skip to content

Android library for building fragmentless single activity apps based on lifecycle-aware Views.

Notifications You must be signed in to change notification settings

es-andreev/ViewLifecycle

Repository files navigation

ViewLifecycle

Use plain android Views without Fragments, still having direct access to Lifecycle, ViewModel etc.

Navigation and back stack are managed by BackStackNavigator across configuration changes.

Usage

Add ViewLifecycle dependency

implementation "ru.viewlifecycle:viewlifecycle:1.12-alpha"

View extensions provided:

  • viewModels() for creating ViewModels
  • lifecycleOwner to access its lifecycle
  • arguments similarly to Fragments

See todo app sample based on this library.

About

Android library for building fragmentless single activity apps based on lifecycle-aware Views.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages