Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
AndroidのWidget作ってみた
Search
HAMADA
July 15, 2024
37
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AndroidのWidget作ってみた
HAMADA
July 15, 2024
More Decks by HAMADA
See All by HAMADA
Unity as a Library で 3Dモデルを表示してみた話
hamashle
0
57
KMPとApolloを利用したマルチプラットフォーム開発
hamashle
0
130
Hiltのありがたさを知る
hamashle
0
22
Featured
See All Featured
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
630
Claude Code のすすめ
schroneko
67
230k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
550
ラッコキーワード サービス紹介資料
rakko
1
5.3M
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
590
Building the Perfect Custom Keyboard
takai
2
900
The agentic SEO stack - context over prompts
schlessera
0
970
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
The Cost Of JavaScript in 2023
addyosmani
55
10k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
730
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Side Projects
sachag
456
43k
Transcript
AndroidのWidget作ってみた 2024年7月14日CALT HAMADA
自己紹介 名前 濵田翔真 学年 会津大学 4回生→ 院進予定 出身 京都 ハンドルネーム HAMADA 所属 A-PxL, Zli,
手芸 好きなもの 龍角散 ソフトテニス 阪神タイガース 音楽全般 技術 Android バックエンド etc 情報発信 Twitter AHMOS_HMD はてなブログ hahahamada.hatenablog.com 特技 人の名前を覚えること
Agenda 経緯 Widgetとは 実装
経緯
経緯 MetiarというARのアプリケーションを制作予定 Widgetは結構使い道がありそう 作ったことがないので、やってみる
Widgetとは
Widgetとは アプリの機能やアプリ内の情報をホーム画面に表示できる 機能のこと ホーム画面に追加すれば、予定をひと目で確認できたり、 ワンタップで連絡をできたりと便利
実装
実装 Jetpack内にある、Glanceを利用する アプリのモジュールにGlance の依存関係を以下のように追加しま す。 implementation("androidx.glance:glance-appwidget:1.0.0") implementation("androidx.glance:glance-material3:1.0.0")
実装 AndroidManifest.xmlに以下を追加します。
実装 glance パッケージ以下に ファイルを作成し実装 GlanceAppWidgetを拡張 したものを実装している。 ここのレイアウトは glanceのものを使用
実装 Receiverを作成し、さっきのWidgetをインスタンス化する。
実装 xmlファイルを作成し、以下のように記述
できたもの
展望 実際に有用なWidgetを作成したい Widgetで3Dオブジェクトが見えるようにしてみたい
ご清聴ありがとう ありがとうございました