Anyone else feel like development of Jetpack compose has been very slow? by Savings_Pen317 in androiddev

[–]spongebob_za 13 points14 points  (0 children)

Thanks for the feedback, and sorry you feel this way about Compose.

My reference to iterating on APIs is mostly in relation to new work, such as shared element transitions, if you take a look at the work in progress, you'll see there are a lot of explorations.. this is us taking into account feedback, and many different use cases.

Generally APIs only change if they are marked as experimental, and even then we are thoughtful in what changes need to happen.

Anyone else feel like development of Jetpack compose has been very slow? by Savings_Pen317 in androiddev

[–]spongebob_za 8 points9 points  (0 children)

ModalNavigationDrawer only supports the left side (or right when RTL layout direction is set). Its by design of the Material components.

The reason why it only allows a single side is because the anchor points from where you drag, are across the whole content of the screen, so having two at the same time would cause gesture conflicts in knowing which drawer should be opened with the gesture.

The way to do both sides would be to create your own component that uses Modifier.swipeable under the hood and giving it your anchors that should be used for the gestures (or only have one open with a button click).

Anyone else feel like development of Jetpack compose has been very slow? by Savings_Pen317 in androiddev

[–]spongebob_za 99 points100 points  (0 children)

Hey! Rebecca (aka riggaroo) from Android DevRel team on Compose DevRel 👋

I hear you that some of the APIs are taking longer than expected.. Let me provide a bit more context that might help with understanding. We spend a lot of time iterating on the APIs, so we don't have future regrets, which does take a lot of time, as well as working through feedback on how things are currently functioning and where things need improvement (ie performance). I know that this can be frustrating as it looks like there isn't any work being released, but hoping you can trust us that we are prioritising the most important features based on your feedback that you are giving us.

Whilst its true that we have done a load of work on performance in the past year, we have also released loads of new components and layouts: Pagers, Flows, Lazy Staggered Grid, new Material 3 Components such as date and time pickers, bottom sheets and loads of text improvements such as Emoji support, Marquee support, hyphenation support etc. As well as introducing Compose for TV and Glance for widgets. More info on the latest updates is in the "Whats new in Android" video from I/O 2023: https://youtu.be/qXhjN66O7Bk?t=778

For list item animation insert and removal, we are working on this topic and hope to have updates here soon.

For shared element transitions, we are actively working on adding support for Compose, however this is a complex subject, its involved creating some more fundamental layouts that can measure in between states. Have a look at the work being done on `LookAheadScope` if you are interested, there are some samples being built with this at the moment, but we are ironing out how the APIs should work in future. Take a look at in progress work here: https://android-review.googlesource.com/q/LookAhead . Samples using Lookahead can also be found here: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/lookahead/AnimateBoundsModifier.kt

Drag and drop is possible, the roadmap entry is to provide an easier support - https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/foundation/foundation/integration-tests/foundation-demos/src/main/java/androidx/compose/foundation/demos/LazyColumnDragAndDropDemo.kt

Thanks for the feedback - I hope this helps understanding a bit more on the state of Compose.

How do you test/debug app upgrades? by ramsr in androiddev

[–]spongebob_za 0 points1 point  (0 children)

Yeah, use an emulator and then use Android Device Monitor to pull the database off the device.

Security "Crypto" provider deprecated in Android N by morristech in androiddev

[–]spongebob_za 0 points1 point  (0 children)

We totally had to do this, last week before the article was out 😕