Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spike] Experiment with Jetpack Compose #4617

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Conversation

cooltey
Copy link
Collaborator

@cooltey cooltey commented Apr 19, 2024

Following the migration strategy:
https://developer.android.com/develop/ui/compose/migrate/strategy

Ideally, we should create a new screen without having an XML file, but we do not have a new feature that needs a new screen, so I picked the "Send feedback" button in AboutActivity, which replaced the <Button> with ComposeView.

The TODOs will be:

  1. Create a @Composable function with our styles definition in the styles.xml.

Findings:

  1. Using the latest version of BOM will cause checkstyle failure.
  2. A very interesting comparison between XML and Compose: https://developer.android.com/develop/ui/compose/migrate/compare-metrics
  3. The @Preview annotation does not work on some UI elements (e.g. AndroidView)

Bug: T358019

@cooltey cooltey added WIP Work in progress Experimental Experiments and prototypes labels Apr 19, 2024
@cooltey cooltey removed the WIP Work in progress label Apr 24, 2024
@cooltey
Copy link
Collaborator Author

cooltey commented Jun 4, 2024

The lint error will be fixed after Google releases new version of AGP: https://issuetracker.google.com/issues/330911660

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Experimental Experiments and prototypes
1 participant