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 Composeでの自動入力(作成:GPT-4o)
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
tonionagauzzi
April 24, 2025
Programming
160
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Android Composeでの自動入力(作成:GPT-4o)
tonionagauzzi
April 24, 2025
More Decks by tonionagauzzi
See All by tonionagauzzi
Kotlin2.3明示的バッキングフィールド
tonionagauzzi
1
360
【Android】テキスト選択色の問題修正で心がけたこと
tonionagauzzi
0
260
Android 15以上でPDFのテキスト検索を爆速開発!
tonionagauzzi
0
380
Googleの新しいコーディングAIエージェントJulesを使ってみた
tonionagauzzi
0
800
Compose におけるパスワード自動入力とパスワード保存
tonionagauzzi
0
510
Androidテスト基礎講義
tonionagauzzi
0
390
Jetpack Composeで自動入力(Autofill)を実装しよう(作成:claude-3.7-sonnet)
tonionagauzzi
0
160
Jetpack Composeにおける自動入力の実装と注意点(作成者:Gemini 2.5 Pro Exp 03-25)
tonionagauzzi
0
180
Jetpack Composeで自動入力を完全攻略(作成:o3)
tonionagauzzi
0
160
Other Decks in Programming
See All in Programming
Snowflake Summitでの新機能 CoCo / CoWork / snowflake-summit-2026-overall-what-new-coco
tatsuhiro
1
220
関数型プログラミングのメリットって何だろう?
wanko_it
0
160
Performance Engineering for Everyone
elenatanasoiu
0
270
Signal Forms: Details & Live Coding @enterJS 2026 in Mannheim
manfredsteyer
PRO
0
230
AIエージェントで 変わるAndroid開発環境
takahirom
2
510
AI 輔助遺留系統現代化的經驗分享
jame2408
1
1.2k
The Bowling Game- From Imperative to Functional Programming - Part 1
philipschwarz
PRO
0
310
Vue × Nuxt × Oxc どこまで使える?実運用の現在地
andpad
0
370
使用 Meilisearch 建立新聞搜尋工具
johnroyer
0
140
信頼性について考えてみる(SRE NEXT 2026 miniLT)
hayama17
0
160
任せる範囲はこう広がった / How the Scope of AI Delegation Has Expanded
nrslib
1
250
Embedded SREと共に達成した会員管理システムのAWS移行 - SRE NEXT 2026 ランチスポンサーセッション
niftycorp
PRO
1
2.3k
Featured
See All Featured
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
650
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
460
Facilitating Awesome Meetings
lara
57
7k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
870
Measuring & Analyzing Core Web Vitals
bluesmoon
9
880
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
690
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.4k
Bash Introduction
62gerente
615
220k
Building Applications with DynamoDB
mza
96
7.1k
Testing 201, or: Great Expectations
jmmastey
46
8.2k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.2k
Transcript
Android Composeでの自動入力 Jetpack Composeでの自動入力の有効化方法 ハマりどころと解決策 1
自動入力とは? パスワード入力欄にカーソルを当てると保存済みもしくは生成したパスワードを 自動で入力 従来のXML型Android Viewでは android:autofillHints プロパティを使用 2
Jetpack Composeでの自動入力 Compose UIを1.8.0以降にアップデート Modifier.semantics を使用して contentType を指定 Column {
TextField( value = username.value, onValueChange = {username.value = it}, modifier = Modifier.semantics { contentType = ContentType.Username } ) TextField( value = password.value, onValueChange = {password.value = it}, modifier = Modifier.semantics { contentType = ContentType.Password } ) } 3
ハマりどころ autofillManager?.commit() が動作しない場合 NewUsername と NewPassword の両方が1つのComposable内にある必要 4
解決策 CredentialManager を使用 androidx.credentials をインポート Column { val context =
LocalContext.current val coroutineScope = rememberCoroutineScope() TextField( value = newPassword.value, onValueChange = { newPassword.value = it }, modifier = Modifier.semantics { contentType = ContentType.NewPassword }, ) Button(onClick = { try { coroutineScope.launch { val credentialManager = CredentialManager.create(context) val request = CreatePasswordRequest(username, newPassword.value) credentialManager.createCredential( request = request, context = context, ) } } catch (e: CreateCredentialException) { 5
まとめ Jetpack Composeでの自動入力の有効化は簡単 CredentialManager を使うことで問題を回避可能 6
参考文献 Jetpack Composeでandroid:autofillHintsのような自動入力を有効にするには? Jetpack ComposeのTextFieldに入力されたパスワードを保存するには? 7