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
Elevationで影が思ったように出ないとき
Search
ninjinkun
January 15, 2015
Programming
4
12k
Elevationで影が思ったように出ないとき
Android 5.0のelevationのバッドノウハウ集です
ninjinkun
January 15, 2015
Tweet
Share
More Decks by ninjinkun
See All by ninjinkun
買収から2ヶ月でシステム統合した話
ninjinkun
0
58
Designer's and Engineer's Thinking Styles
ninjinkun
0
160
Launchable Webinar テストを効率化して生産性を上げる方法
ninjinkun
2
520
ディープリンクの 設計と実装 - iOSDC2017
ninjinkun
18
10k
スマートフォンアプリ開発における共創的な開発チーム
ninjinkun
61
18k
ReSwiftでアプリの状態管理 / Reactive Swift Meetup
ninjinkun
9
16k
フリルのアプリ開発今昔物語
ninjinkun
3
2.2k
プロトタイピング合宿によるデザインリニューアル
ninjinkun
1
3k
デザイナーが仕事をしやすいアプリエンジニアを考える
ninjinkun
4
640
Other Decks in Programming
See All in Programming
dbt Pythonモデルで実現するSnowflake活用術
trsnium
0
120
定理証明プラットフォーム lapisla.net
abap34
1
1.8k
XStateを用いた堅牢なReact Components設計~複雑なClient Stateをシンプルに~ @React Tokyo ミートアップ #2
kfurusho
1
900
GoとPHPのインターフェイスの違い
shimabox
2
180
Introduction to kotlinx.rpc
arawn
0
690
チームリードになって変わったこと
isaka1022
0
200
Pythonでもちょっとリッチな見た目のアプリを設計してみる
ueponx
1
550
PHPカンファレンス名古屋2025 タスク分解の試行錯誤〜レビュー負荷を下げるために〜
soichi
1
180
ソフトウェアエンジニアの成長
masuda220
PRO
10
1.1k
Open source software: how to live long and go far
gaelvaroquaux
0
630
SRE、開発、QAが協業して挑んだリリースプロセス改革@SRE Kaigi 2025
nealle
3
4.3k
AWSマネコンに複数のアカウントで入れるようになりました
yuhta28
2
160
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
336
57k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2.1k
Typedesign – Prime Four
hannesfritz
40
2.5k
Facilitating Awesome Meetings
lara
52
6.2k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.2k
Fashionably flexible responsive web design (full day workshop)
malarkey
406
66k
Bootstrapping a Software Product
garrettdimon
PRO
306
110k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.3k
Making the Leap to Tech Lead
cromwellryan
133
9.1k
Transcript
&MFWBUJPOͰӨ͕ ࢥͬͨΑ͏ʹग़ͳ͍ͱ͖ OJOKJOLVO
&MFWBUJPOͱ w "OESPJE͔Βಋೖ͞Εͨ 7JFXͷߴͷ֓೦ w ઃఆ͢Δͱ7JFXʹӨ͕ண͘ w Ϣʔβʔ͕֤7JFXͷॏͳΓ߹͍ ΛΔख͕͔ΓʹͳΔ w
ҎલͰݟ͑ͳ͍ͷͰઃఆͯ͠ແҙ
Ө͕ࢥͬͨΑ͏ʹ ग़ͳ͍
ͳΜ͔Ө͕ग़ͳ͍ w 7JFXͷ·ΘΓʹ༨ന͕ඞཁ ΕͯΔ NBSHJO͋Γ
ͳΜ͔Ө͕ग़ͳ͍ w 7JFXͷ·ΘΓʹ༨ന͕ඞཁ ΕͯΔ NBSHJO͋Γ
ͳΜ͔Ө͕ग़ͳ͍ w CBDLHSPVOEʹΞϧϑΝ͕ઃఆ͞Ε͍ͯΔͱӨ͕ ग़ͳ͍ w όάͰͳ͍͔ͱݴΘΕ͍ͯΔ IUUQTUBDLPWFSqPXDPNRVFTUJPOTFMFWBUJPOPOBOESPJEMPMMJQPQOPUXPSLJOH
ͳΜ͔Ө͕ग़ͳ͍ w #VUUPOʹFMFWBUJPO͕ͨΒͳ͍ w TUBUF-JTU"OJNBUPS͕FMFWBUJPOΛ্ॻ͖ͯ͠Δ w σϑΥϧτͩͱ#VUUPOEQු͍ͯΔ IUUQRJJUBDPN(FTZVUBQPJUFNTGGCGFF <item android:state_enabled="true">
<set> <objectAnimator android:propertyName="translationZ" android:duration="@integer/button_pressed_animation_duration" android:valueTo="0" android:startDelay="@integer/button_pressed_animation_delay" android:valueType="floatType"/> <objectAnimator android:propertyName="elevation" android:duration="0" android:valueTo="@dimen/button_elevation_material" android:valueType="floatType" /> </set> </item> ͓લ͔ʂ TUBUF-JTU"OJNBUPSl!OVMMzʹ ͢Δͱҙͷߴ͞ʹͰ͖Δ
&MFWBUJPOWT7JFX֊ w 7JFX͕ಉ͡FMFWBUJPOͳΒӨͳ ͘ͳΔ <LinearLayout android:layout_width="wrap_content" android:layout_height=“wrap_content" android:orientation="vertical"> <TextView android:elevation="8dp"
android:padding="4dp" android:gravity=“center" android:layout_width="wrap_content" android:layout_height="@dimen/grid_size" android:background="@android:color/holo_green_dark" /> <TextView android:elevation="8dp" android:padding="4dp" android:gravity="center" android:layout_width="wrap_content" android:layout_height="@dimen/grid_size" android:background="@android:color/holo_blue_dark" /> </LinearLayout>
&MFWBUJPOWT7JFX֊ w 7JFX֊͕ҧ͏ͱಉ͡FMFWBUJPOͰ Ө͕ண͘ <LinearLayout android:layout_width="wrap_content" android:layout_height=“wrap_content" android:orientation="vertical"> <TextView android:elevation="8dp"
android:padding="4dp" android:gravity=“center" android:layout_width="wrap_content" android:layout_height="@dimen/grid_size" android:background="@android:color/holo_green_dark" /> <LinearLayout android:layout_width="wrap_content" android:layout_height=“wrap_content" android:orientation="vertical"> <TextView android:elevation="8dp" android:padding="4dp" android:gravity="center" android:layout_width="wrap_content" android:layout_height="@dimen/grid_size" android:background="@android:color/holo_blue_dark" /> </LinearLayout> </LinearLayout>
&MFWBUJPOWT7JFX֊ w ಉ͡FMFWBUJPOͷ͕ͣʜ w "DUJPO#BSͱλϒ͕ҧ͏ ֊ʹ͋Δ w 'SBHNFOUʹ5PPMCBSΛ ஔ͘Α͏ʹߏΛม͑· ͨ͠ʜ
ͳʹ͜Ε
&MFWBUJPOWT7JFX֊ w ಉ͡FMFWBUJPOͷ͕ͣʜ w "DUJPO#BSͱλϒ͕ҧ͏ ֊ʹ͋Δ w 'SBHNFOUʹ5PPMCBSΛ ஔ͘Α͏ʹߏΛม͑· ͨ͠ʜ
"DUJWJUZ 'SBHNFOU ͳʹ͜Ε
"DUJPO#BSͷλϒͰӨ͕ग़ͳ͍ w /"7*("5*0/@.0%&@5"#4ͰӨ ͕ग़ͳ͍ w ͔ͦͦΒ%FQSFDBUFE w Ͳ͏͍͚ͯͨ͠Εແཧཧ ग़͢͜ͱՄೳ ActionBarContainer
container = (ActionBarContainer) getWindow().findViewById(R.id.action_bar_container); container.setBackgroundColor(getResources().getColor(R.color.actionbar_background));
·ͱΊ w FMFWBUJPO7JFXͷߴΛද֓͢೦ w Ө͕ࢥͬͨΑ͏ʹग़ͳ͍߹ҎԼΛ֬ೝ w Ϛʔδϯ w എܠ৭ͷΞϧϑΝ w
7JFX֊ w /"7*("5*0/@.0%&@5"#4ΊΑ͏