Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Generate Android App UI with Gemini

ムッチョ
June 19, 2024
81

Generate Android App UI with Gemini

ムッチョ

June 19, 2024
Tweet

Transcript

  1. Introduction 👋 • Name: Musa Yazici • iOS Developer at

    Voicy Inc. • Worked for 1 year as a developer of NativeCamp in Cebu🏝 @Mucchooooo
  2. There is a session on the Gemini Chat feature to

    help with Android development.
  3. Prompt: For the image provided, use Jetpack Compose to build

    the screen so that the Compose Preview is as close to this image as possible. Also make sure to include imports, use Material 3.
  4. ✅ Compiles without errors ✅ Recognizes each item’s characteristics ✅

    Using proper UI components ❌ Difference in design detail Before After
  5. ✅ Compiles without errors ✅ Recognizes each item’s characteristics ✅

    Using proper UI components ❌ Difference in design detail Before After
  6. ✅ Compiles without errors ✅ Recognizes each item’s characteristics ✅

    Uses proper UI components ❌ Difference in design detail Before After
  7. ✅ Compiles without errors ✅ Recognizes each item’s characteristics ✅

    Uses proper UI components ❌ Differences in design details Before After
  8. ✅ Compiles without errors ✅ Recognizes each item’s characteristics ✅

    Using proper UI components ❌ Differences in design details Before After It will boost productivity!
  9. Let’s use the website The result from Gemini Advanced Prompt:

    For the image provided, use Jetpack Compose to build the screen so that the Compose Preview is as close to this image as possible. Also make sure to include imports, use Material 3.
  10. ✅ Compiles without errors ✅ Recognizes each item’s characteristics ✅

    Using proper UI components ❌ Differences in design details Before After Google’s showcase
  11. ❌ Not Compilable ❌ Doesn’t recognize the text properly ❌

    Missing image ❌ Significant differences in design Before After Real
  12. ❌ imports and Composables only Code Comparison ✅ Hundreds of

    lines of code, including imports, MainActivity, Composable, and Preview Google’s showcase Real
  13. The model is the same as the one used in

    the showcase: Gemini 1.5 Pro