Skip to content

Conversation

@nikclayton
Copy link
Contributor

Try and convert the translation model manager UI to Compose to get a feel for the complexity and what features are currently missing.

Android Studio does not like this, see this bug for details: https://issuetracker.google.com/issues/441253579

Stuff still to do to take this forward:

  • No scrollbar on the list
  • Haven't finished checking all the edge-to-edge stuff
  • Haven't converted the dialogs

Also, all the build.gradle.kts dependency stuff is janky and copied from the "Setting up Compose" docs, rather than integrating it nicely into the build system.


// Choose one of the following:
// Material Design 3
implementation("androidx.compose.material3:material3")

Check failure

Code scanning / Android Lint

Use TOML Version Catalog Instead

Use version catalog instead
// implementation("androidx.compose.ui:ui")

// Android Studio Preview support
implementation("androidx.compose.ui:ui-tooling-preview")

Check failure

Code scanning / Android Lint

Use TOML Version Catalog Instead

Use version catalog instead

// Android Studio Preview support
implementation("androidx.compose.ui:ui-tooling-preview")
debugImplementation("androidx.compose.ui:ui-tooling")

Check failure

Code scanning / Android Lint

Use TOML Version Catalog Instead

Use version catalog instead
debugImplementation("androidx.compose.ui:ui-tooling")

// UI Tests
androidTestImplementation("androidx.compose.ui:ui-test-junit4")

Check failure

Code scanning / Android Lint

Use TOML Version Catalog Instead

Use version catalog instead

// UI Tests
androidTestImplementation("androidx.compose.ui:ui-test-junit4")
debugImplementation("androidx.compose.ui:ui-test-manifest")

Check failure

Code scanning / Android Lint

Use TOML Version Catalog Instead

Use version catalog instead
implementation("androidx.compose.material3.adaptive:adaptive")

// Optional - Integration with activities
implementation("androidx.activity:activity-compose:1.10.1")

Check failure

Code scanning / Android Lint

Use TOML Version Catalog Instead

Use version catalog instead
// Optional - Integration with activities
implementation("androidx.activity:activity-compose:1.10.1")
// Optional - Integration with ViewModels
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.5")

Check failure

Code scanning / Android Lint

Use TOML Version Catalog Instead

Use version catalog instead
// Optional - Integration with RxJava
// implementation("androidx.compose.runtime:runtime-rxjava2")

implementation("androidx.constraintlayout:constraintlayout:2.2.1")

Check failure

Code scanning / Android Lint

Use TOML Version Catalog Instead

Use the existing version catalog reference (libs.androidx.constraintlayout) instead

implementation("androidx.constraintlayout:constraintlayout:2.2.1")
// To use constraintlayout in compose
implementation("androidx.constraintlayout:constraintlayout-compose:1.1.1")

Check failure

Code scanning / Android Lint

Use TOML Version Catalog Instead

Use version catalog instead
implementation("androidx.constraintlayout:constraintlayout:2.2.1")
// To use constraintlayout in compose
implementation("androidx.constraintlayout:constraintlayout-compose:1.1.1")
debugImplementation("androidx.compose.runtime:runtime-tracing")

Check failure

Code scanning / Android Lint

Use TOML Version Catalog Instead

Use version catalog instead
Try and convert the translation model manager UI to Compose to get a feel
for the complexity and what features are currently missing.

Android Studio does not like this, see this bug for details:
https://issuetracker.google.com/issues/441253579

Stuff still to do to take this forward:

- No scrollbar on the list
- Haven't finished checking all the edge-to-edge stuff
- Haven't converted the dialogs

Also, all the build.gradle.kts dependency stuff is janky and copied from
the "Setting up Compose" docs, rather than integrating it nicely into
the build system.
@nikclayton nikclayton force-pushed the language-pack-compose branch from c8bc273 to d1803c2 Compare December 13, 2025 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant