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
85
AndroidアプリのUIをGeminiで生成する
ムッチョ
July 19, 2024
Tweet
Share
More Decks by ムッチョ
See All by ムッチョ
Architecture Design for Local Database ~ Realm, CoreData, SwiftData ~
musayazuju
0
100
Generate Android App UI with Gemini
musayazuju
2
110
Databaseのことを考えずにiOSアプリを作る ローカルデータベースを使うときの アーキテクチャ設計
musayazuju
1
160
CoreDataからSwiftDataへの移行
musayazuju
1
110
Featured
See All Featured
Music & Morning Musume
bryan
46
6.7k
Speed Design
sergeychernyshev
32
1k
Site-Speed That Sticks
csswizardry
10
710
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.4k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.3k
Raft: Consensus for Rubyists
vanstee
140
7k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Six Lessons from altMBA
skipperchong
28
3.9k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
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!