Skip to content

How to use the Android view extensions? #74

Answered by arkivanov
plusmobileapps asked this question in Q&A
Discussion options

You must be logged in to vote

The extensions-android module is indeed for working with normal Android Views, but it is really really experimental. I will annotated its as experimental to make it explicit. Decompose is primarily designed for declarative UI frameworks, so it does not have things like onViewCreated, viewLifecycle, etc. And so Android Views have to be attached externally, listen for state changes and update accordingly.

The Counter example indeed contains Android Views sample UI and can be used as reference. With RouterView you have to manually add/remove child views, and so you can use e.g. TransitionManager for animations.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@plusmobileapps
Comment options

@arkivanov
Comment options

@arkivanov
Comment options

Answer selected by plusmobileapps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants