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
Bottom navigation
Search
Takuji Nishibayashi
October 26, 2016
Technology
0
180
Bottom navigation
Takuji Nishibayashi
October 26, 2016
Tweet
Share
More Decks by Takuji Nishibayashi
See All by Takuji Nishibayashi
java.timeをAndroidで使う
takuji31
0
23
KSPを使ってコード生成
takuji31
0
160
Kotlin Symbol Processing API (KSP) を使って Kotlin ア プリケーションの開発を効率化する
takuji31
1
700
kotlinx.serialization
takuji31
0
440
kanmoba-returns-02.pdf
takuji31
0
130
AndroidXとKotlin Coroutines
takuji31
0
260
AndroidXに潜む便利なヤツら
takuji31
0
120
Kotlin Inline Class
takuji31
0
96
No more Adapter with Epoxy and Data Binding
takuji31
0
780
Other Decks in Technology
See All in Technology
Java EE/Jakarta EEの現状と将来―クラウドネイティブ時代にJava EEは対応できるのか?―
takakiyo
1
170
家族アルバム みてねにおけるGrafana活用術 / Grafana Meetup Japan Vol.1 LT
isaoshimizu
1
780
Azure犬駆動開発の記録/GlobalAzureFukuoka2024_20240420
nina01
1
220
障害対応をちょっとずつよくしていくための 演習の作りかた
heleeen
0
240
Cypress or Playwright?
rainerhahnekamp
0
110
AOAI をきっかけに 社内の Azure 管理を見直した話
recruitengineers
PRO
1
300
地理空間データ可視化・解析・活用ソリューション Pacific Spatial Solutions (PSS)
pacificspatialsolutions
0
300
プロンプトエンジニアリングでがんばらない-Agentic Workflow へ-近藤憲児
kenjikondobai
3
950
Azure Container Apps + Bicep 〜 こんな感じで運用しています
kaz29
2
480
開発パフォーマンスを最大化するための開発体制
ham0215
2
450
エンジニア候補者向け資料2024.04.24.pdf
macloud
0
3.3k
SIEMを用いて、セキュリティログ分析の可視化と分析を実現し、PDCAサイクルを回してみた
coconala_engineer
0
340
Featured
See All Featured
VelocityConf: Rendering Performance Case Studies
addyosmani
320
23k
Rebuilding a faster, lazier Slack
samanthasiow
73
8.2k
A Philosophy of Restraint
colly
197
16k
Practical Orchestrator
shlominoach
182
9.7k
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
Producing Creativity
orderedlist
PRO
337
39k
Become a Pro
speakerdeck
PRO
11
4.5k
Adopting Sorbet at Scale
ufuk
68
8.6k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
14
1.6k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
221
21k
YesSQL, Process and Tooling at Scale
rocio
164
13k
In The Pink: A Labor of Love
frogandcode
138
21k
Transcript
Bottom navigation @takuji31
@takuji31 (Takuji Nishibayashi) Application Engineer at Hatena
Loves ! (AVG 170 ~ 175)
Loves Kotlin
Kansai.kt #2 Γ·͢
11݄26() 14:30ʙ ͯͳژΦϑΟε
࠷ۙPerlͱ Markdownॻ͍ͯ·͢
AGENDA • Bottom navigation • BottomNavigationViewΛͬͯΈΔ
Bottom navigation
Material Designίϯϙ ʔωϯτͷҰͭ
Bottom navigation bars make it easy to explore and switch
between top- level views in a single tap. — https://material.google.com/components/bottom- navigation.html
Botton navigation • 3ʙ5ͭͷτοϓϨϕϧͷViewΓସ͑ΛγϯάϧλοϓͰߦ ͏ͨΊͷComponent • 3ʙ5ݸҎ֎ͷ࣌ɺτοϓϨϕϧҎ֎ͷ࣌ʹ͏͖Ͱͳ ͍ • Bottom͕ͩɺେ͖ͳը໘ͷ࣌ࠨʹදࣔ͢Δ
None
iOSͷTabBarΈ͍ͨͳ ͭ
͋ΔಥવΨΠυϥΠϯ ʹग़ݱ
ͪΖΜ࣮ͳ͍
!
2016/10/19
Android 7.1 Developer Preview
Support Library 25.0.0
None
αϥͬͱՃ͞Ε͍ͯͨ
Bottom Navigation View ΛͬͯΈΔ
build.gradle dependencies { compile 'com.android.support:design:25.0.0' }
layout.xml <RelativeLayout> <android.support.design.widget.BottomNavigationView app:menu="@menu/bottom_navigation" android:layout_width="match_parent" android:layout_height="wrap_content" /> </RelativeLayout>
menu.xml <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/menu_home" android:icon="@drawable/ic_home_black_24dp" android:title="Home"/> <item android:id="@+id/menu_notifications" android:icon="@drawable/ic_notifications_black_24dp"
android:title="Notifications"/> <item android:id="@+id/menu_profile" android:icon="@drawable/ic_person_black_24dp" android:title="Profile"/> </menu>
Activity override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_bottom_navigation_view) bottomNavigationView.setOnNavigationItemSelectedListener {
textView.text = "This is " + it.title.toString() true } }
None
ͬͯΈͯ • menuͷxmlॻ͚ͩ͘ͰͦΕͬΆ͍ͷ͕Ͱ͖͕͋Δ • ΞΠίϯToolbarͳΜ͔ͱಉ͡Α͏ʹtinting͞ΕΔ • ΠϕϯτOnNavigationItemSelectedListenerΛઃఆͯͦ͠ ͜ͰͳΜ͔Δ
ͬͯΈͯ • 5݅·Ͱ͔͠ஔ͚ͳ͍ɺͦΕҎ্ஔ͍ͨΒྫ֎ • 3݅ͱͦΕҎ্Ͱϝχϡʔࣗମͷݟ͕ͨҧ͏ • 3݅ͷ࣌ςΩετ͖Ͱִؒදࣔ • 4݅Ҏ্ͷ࣌ඇΞΫςΟϒͳͷςΩετඇදࣔɺબ͞Εͨͷ͕͕ ͬͯදࣔ
• Γସ͑࣌ʹΞχϝʔγϣϯ͢ΔΜ͚ͩͲɺͳΜ͔ҧ͏ • API25·ͩPreviewͳͷͰ͏ͱຊମͷιʔείʔυ͕ݟ͑ͳ͍! • ͓ͯͨΜͱ͕ͪ͏ʂ
takuji31/ KanmobaAndroid
enjoy navigation life !