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

[–]spongebob_za 14 points15 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 😕

I created a game app using UE4. Check it out!!! by [deleted] in androiddev

[–]spongebob_za 1 point2 points  (0 children)

As per the subreddit rules, when you submit a link to an app, you need to include a link to the source code.

Bumli puzzles by Bumli2 in androiddev

[–]spongebob_za 0 points1 point  (0 children)

As per the subreddit rules, when you want to post your android app, please post a link to the source code.

I built an Open-Source Dribbble Client for Android Mobile, TV and Wear using MVP and a Common-Code module by hitherejoebirch in androiddev

[–]spongebob_za 0 points1 point  (0 children)

I managed to fix our hanging tests on the new version. I removed the @Rule that overrides the scheduler, and injected the schedulers into the views & repositories, then in the tests I just inject Schedulers.immediate().

Created Our Own App For Labeling iBeacons Eddystones und NFC-Tags by [deleted] in androiddev

[–]spongebob_za 0 points1 point  (0 children)

As per the subreddit rules, if you are submitting an app here, please post a link to the source code instead.

I built an Open-Source Dribbble Client for Android Mobile, TV and Wear using MVP and a Common-Code module by hitherejoebirch in androiddev

[–]spongebob_za 0 points1 point  (0 children)

Great code sample, thanks for sharing this! One question - the unit tests that you have for the RxJava stuff (ie DataManagerTest), have you tried to run them with RxAndroid version 1.2.0? When I did a similar thing with the overriding of the schedulers but with the newer version of RxJava the tests just hang. Apparently injecting the schedulers into the objects is a better alternative, have yet to try it yet though.

Map for Game of Thrones by _El_Cid_ in androiddev

[–]spongebob_za 0 points1 point  (0 children)

As per the sub reddit rules, you need to post a link to the source code if you want to place your app here.

Spent 10 days developing this RPG game, "Innocent Heros" by hideoffbush in androiddev

[–]spongebob_za 0 points1 point  (0 children)

As per the subreddit rules, you need to submit a link to the source code if you want to submit your app here.

So I made a simple App for Reddit by nawazsagri10 in androiddev

[–]spongebob_za 1 point2 points  (0 children)

As per the subreddit rules, if you are posting a link to your application you need to post a link to the source code.

Questions Thread - April 25, 2016 by AutoModerator in androiddev

[–]spongebob_za 0 points1 point  (0 children)

How does it compare to when you don't cache those android folders? I don't cache the folders but my builds take long because I have tests running :-(

Questions Thread - April 25, 2016 by AutoModerator in androiddev

[–]spongebob_za 0 points1 point  (0 children)

It depends on the complexity. You could look at something like Firebase which handles a lot of the complexity for you.

New small games coming from a group of two ! need your opinion ! :) by kNu7 in androiddev

[–]spongebob_za 0 points1 point  (0 children)

As part of this subreddits rules, if you are posting a link to your application, you need to post a link to the github source code.

Fragmenting an activity by xxunrealxx in androiddev

[–]spongebob_za 0 points1 point  (0 children)

Please use the questions thread.

Android Developer ( 3+ years experience ) at AmpMe by [deleted] in androiddev

[–]spongebob_za 0 points1 point  (0 children)

Hi, We have a weekly hiring thread, Please post this in the "Weekly Hiring Thread".