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
78
AndroidアプリのUIをGeminiで生成する
ムッチョ
July 19, 2024
Tweet
Share
More Decks by ムッチョ
See All by ムッチョ
Architecture Design for Local Database ~ Realm, CoreData, SwiftData ~
musayazuju
0
95
Generate Android App UI with Gemini
musayazuju
2
100
Databaseのことを考えずにiOSアプリを作る ローカルデータベースを使うときの アーキテクチャ設計
musayazuju
1
140
CoreDataからSwiftDataへの移行
musayazuju
1
85
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
67
11k
Automating Front-end Workflow
addyosmani
1369
200k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
5
560
Docker and Python
trallard
44
3.3k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
119
51k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Building an army of robots
kneath
304
45k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.8k
How to Think Like a Performance Engineer
csswizardry
23
1.5k
Building Adaptive Systems
keathley
41
2.5k
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!