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
150
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
ペアーズでの、Langfuseを中心とした評価ドリブンなリリースサイクルのご紹介
fukubaka0825
2
300
昭和の職場からアジャイルの世界へ
kumagoro95
1
350
Djangoアプリケーション 運用のリアル 〜問題発生から可視化、最適化への道〜 #pyconshizu
kashewnuts
1
210
『品質』という言葉が嫌いな理由
korimu
0
150
Spring gRPC について / About Spring gRPC
mackey0225
0
220
Bedrock Agentsレスポンス解析によるAgentのOps
licux
2
540
Kanzawa.rbのLT大会を支える技術の裏側を変更する Ruby on Rails + Litestream 編
muryoimpl
0
210
XStateを用いた堅牢なReact Components設計~複雑なClient Stateをシンプルに~ @React Tokyo ミートアップ #2
kfurusho
1
630
密集、ドキュメントのコロケーション with AWS Lambda
satoshi256kbyte
0
120
Compose でデザインと実装の差異を減らすための取り組み
oidy
1
300
ファインディの テックブログ爆誕までの軌跡
starfish719
2
1.1k
SRE、開発、QAが協業して挑んだリリースプロセス改革@SRE Kaigi 2025
nealle
3
4.1k
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.7k
The Invisible Side of Design
smashingmag
299
50k
Side Projects
sachag
452
42k
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
Six Lessons from altMBA
skipperchong
27
3.6k
The Pragmatic Product Professional
lauravandoore
32
6.4k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Adopting Sorbet at Scale
ufuk
74
9.2k
Optimising Largest Contentful Paint
csswizardry
34
3.1k
Why Our Code Smells
bkeepers
PRO
335
57k
Agile that works and the tools we love
rasmusluckow
328
21k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
3
300
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ΊΑ͏