What about Hilt ? 😄 (dislaimer: didn’t try it yet, will do soon)
2 years ago
I'm having some trouble getting previews to work with the latest versions, last time I tried compose was with dev05 and I didn't have any issues. Project builds and runs fine on a device, it's just previews not working. I'm using AS 4.2 Canary 5 and compose dev15, getting this error in the preview pane (I'll post the full stack trace in a thread):
The following classes could not be instantiated: - androidx.ui.tooling.preview.ComposeViewAdapter
Just started open beta test for my Wallpaper App. The UI is exclusive Compose. Single Activity no Fragments.
It is still work in progress and compose version dev14. Please try it and report problems. If you have any questions how i implemented s.th. i am looking forward to explain it and share code with you.https://play.google.com/apps/testing/de.appsonair.fanartDid not have any compose based app with big user base now. So i do not know if there are some problems. In theory it should run on all devices since Android API 21
which is highly similar but instead of receiving children as a trailing lambda, it provides a state that can be used by following composables in the same scope. The docs suggest that
is the main control unit for transition state. Whenever it changes, animation will change the course to this new destination state whether the animation was running or not. However, I'm having trouble understanding how to reset the current animation all together.Let's say my initial configuration is to go from
. In the middle of this transition, Composable receives a new state, which means the animation needs to restart. Animation should go back to state
and again head for
. I could not find a way of simply resetting
at the same time. What is the recommendation for such behavior?
2 years ago
When working with state on a mutable object even if I tell the state that it is
to invoke the comparison of the objects to trigger a recompose I still have to call the setter. So I end up assigning the object to itself. Am I missing another way to do this?
Zach Klippenstein (he/him) [MOD]
2 years ago
that enters a composition by being captured by a composable lambda get its callbacks invoked? E.g.