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
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Bottom navigation
Takuji Nishibayashi
October 26, 2016
More Decks by Takuji Nishibayashi
See All by Takuji Nishibayashi
compose-hot-reload を試そうとした話
takuji31
0
160
CameraX使ってみた
takuji31
0
310
kotlinx.datetime 使ってみた
takuji31
0
1.1k
HiltのCustom Componentについて
takuji31
0
380
java.timeをAndroidで使う
takuji31
0
210
KSPを使ってコード生成
takuji31
0
480
Kotlin Symbol Processing API (KSP) を使って Kotlin ア プリケーションの開発を効率化する
takuji31
1
3.2k
kotlinx.serialization
takuji31
0
700
kanmoba-returns-02.pdf
takuji31
0
300
Other Decks in Technology
See All in Technology
AIが当たり前の組織で エンジニアはどう育つか
nishihira
1
1.3k
モバイル研修【MIXI 26新卒技術研修】
mixi_engineers
PRO
1
180
AI驚き屋発見器
yama3133
1
330
全社でのソフトウェアサプライチェーン攻撃対策をやってみた with Takumi Guard
z63d
0
310
事業成長とAI活用を止めないデータ基盤アーキテクチャの設計思想
hiracky16
0
720
「休む」重要さ
smt7174
7
1.7k
2年前に削除したPHPクラスが、 ある日突然決済をエラーにした
ykagano
1
840
AIとハーネスで育てるトランスコンパイラ / 20260722 Yasushi Katayama
shift_evolve
PRO
3
970
なぜ、あなたのエージェントは言うことを聞かないのか
segavvy
1
520
AI時代におけるエンジニアの新たな役割──FDEとクオリアの探求/登壇資料(戸井田 裕貴)
hacobu
PRO
0
460
エンタープライズデータへ安全につなぐ Production-ready なエージェント設計 ― AI × MCP リファレンスアーキテクチャ ― #AIDevDay
cdataj
1
110
AIエージェントがあれば技術書なんてすぐ書けるでしょ→無理でした
watany
5
480
Featured
See All Featured
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
230
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.9k
The SEO Collaboration Effect
kristinabergwall1
1
510
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
420
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.7k
A Tale of Four Properties
chriscoyier
163
24k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.9k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
520
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
230
Documentation Writing (for coders)
carmenintech
77
5.4k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
600
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 !