Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AndroidアプリのUIをGeminiで生成する
Search
ムッチョ
July 19, 2024
0
69
AndroidアプリのUIをGeminiで生成する
ムッチョ
July 19, 2024
Tweet
Share
More Decks by ムッチョ
See All by ムッチョ
Architecture Design for Local Database ~ Realm, CoreData, SwiftData ~
musayazuju
0
81
Generate Android App UI with Gemini
musayazuju
2
94
Databaseのことを考えずにiOSアプリを作る ローカルデータベースを使うときの アーキテクチャ設計
musayazuju
1
130
CoreDataからSwiftDataへの移行
musayazuju
1
73
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
The Pragmatic Product Professional
lauravandoore
32
6.4k
Build The Right Thing And Hit Your Dates
maggiecrowley
34
2.5k
Building Adaptive Systems
keathley
40
2.4k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
GitHub's CSS Performance
jonrohan
1030
460k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
193
16k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Designing for Performance
lara
604
68k
GraphQLの誤解/rethinking-graphql
sonatard
68
10k
The Invisible Side of Design
smashingmag
299
50k
Building Your Own Lightsaber
phodgson
104
6.2k
Transcript
AndroidアプリのUIを で生成する
自己紹介 👋 • Name: Muccho (ヤズジュ ムーサー) • Androidも書く iOS
Developer at Voicy Inc. • Android歴はまだまだ勉強中 @Mucchooooo
Androidエンジニア 積極採用中!
https://io.google/2024/ Google I/O 2024にて…
Gemini Chat機能で Androidアプリ開発 を助ける機能!
Android Studioに実 装されたGemini は Android projectの 内容を理解してくれ るらしい。。。 😘
Jetpack composeのcodeをデザイン画像から生 成する能力を披露 https://www.youtube.com/watch?v=ddcZnW1HKUY&t=1770s
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.
None
None
None
None
🤔🤔🤔
✅ コンパイルが通る ✅ それぞれのアイテムの 特徴を理解 ✅ 適切なUI Component ❌ 細部のデザインに違い
Before After
Before After ✅ コンパイルが通る ✅ それぞれのアイテムの 特徴を理解 ✅ 適切なUI Component
❌ 細部のデザインに違い 生産性向上間違いなし!
やってみよう!
Step 1: Gemini tabを開く
Step 2: プロンプトを入れる
あれ、画像を入れるオプションがない 🤯
とりあえず Web版を使う プロンプト : 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.
Gemini Advanced Google’s most capable AI models
結果は...
None
Java?
複数のコンパイル エラー 🥺
コンパイルエラーは Geminiに伝えたら すぐ直してもらえた
UIの結果は...
🤯
None
Before After Google’s showcase ✅ コンパイルが通る ✅ それぞれのアイテムの 特徴を理解 ✅
適切なUI Component ❌ 細部のデザインに違い
❌ コンパイルできない ❌ テキストを捉えてない ❌ 画像が消えている ❌ デザインが全然違う Before After
Real
Level 1 https://www.vecteezy.com/vector-art/8295021- simple-store-drink-ui-design-template-vector-s uitable-designing-application-for-android-and-i os-clean-style-app-mobile Level 3 https://www.uistore.design/items/trackizer-free -app-ui-kit-for-figma/
Level 2 https://www.uistore.design/items/trackizer-free -app-ui-kit-for-figma/ ❌ Failed
❌ 50行程度のコード • Imports • Composables Code Comparison ✅ 200行程度のコード
• Imports • MainActivity • Composable • Preview Google’s showcase Real
なぜ? 🤔
違うAIモデルを使っている のか? 🤔
いいえ、同じです。 Gemini 1.5 Pro
Gemini Advanced Gemini 1.5 Pro 1M token context window
Fake…? Before After
このshowcaseでGeminiが生成したコードは、本当に Gemini が生成したのか、事前に用意されたのか
Before After まだ開発中の最先 端AIモデルかもし れません
Googleからのアップデートを待ちましょう!
Thank you!