Introduction of Jetpack Compose #866
Replies: 4 comments 7 replies
|
This sounds great, thank you @emilymclean I'd wait to hear back from some others as well. |
|
Yes, I'd say that such a PR is more than welcome! I've been hoping for this type of contributions for some time. When it comes to Compose vs XML, I can't judge what would be our best strategy. I assume there are certain costs of doing a full migration, and when reading up on it, it doesn't seem like a complete no-brainer. But I'm very much for introducing Compose into the code base, to get a feel for our options. I guess Compose has more of a learning curve than XML-based UI, but I'm also getting the impression that Compose is becoming the norm, and that more and more online resources are solely focused on Compose. |
|
@emilymclean were you able to introduce the jetpack compose? |
|
Considering the announcement at Google I/O that "Android is now Compose First; Views are now in maintenance mode.", I think it might be worth this project planning a migration from XML to Compose. It might be worth considering redesigning some parts of the app with a more modern interface in the process, but I suspect that would be controversial. Just off the top of my head, this would probably mostly be supporting work, particularly cleaning up the app architecture by migrating away from the localbroadcastmanager library and the mega MainActivity, something that should be done anyway. A more modern way to achieve this goal would be to hoist that logic into UseCases and global responsive state. |
Uh oh!
There was an error while loading. Please reload this page.
Are there currently any plans (or objections) to introduce Jetpack Compose into this project? Compose is now the recommended UI toolkit for Android and increasingly development efforts are being shifted towards it. Using it would support more modular, reusable UI development as well as lowing the barrier of entry for developers familiar with modern Android development practices. Long term, it could be part of a wider effort to modernize the app architecture with a view toward full migration onto the framework (/other modern Jetpack libraries).
If there is interest I would be happy to make a candidate PR that sets up the framework and adds a basic widget library.
All reactions