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
11k
Elevationで影が思ったように出ないとき
Android 5.0のelevationのバッドノウハウ集です
ninjinkun
January 15, 2015
Tweet
Share
More Decks by ninjinkun
See All by ninjinkun
Designer's and Engineer's Thinking Styles
ninjinkun
0
70
Launchable Webinar テストを効率化して生産性を上げる方法
ninjinkun
2
480
ディープリンクの 設計と実装 - iOSDC2017
ninjinkun
18
9.5k
スマートフォンアプリ開発における共創的な開発チーム
ninjinkun
61
18k
ReSwiftでアプリの状態管理 / Reactive Swift Meetup
ninjinkun
9
16k
フリルのアプリ開発今昔物語
ninjinkun
3
2.1k
プロトタイピング合宿によるデザインリニューアル
ninjinkun
1
2.9k
デザイナーが仕事をしやすいアプリエンジニアを考える
ninjinkun
4
600
Square Fragmentやめるってよ
ninjinkun
13
3.4k
Other Decks in Programming
See All in Programming
Git Rebase
bkuhlmann
11
1.6k
PostmanでAPIの動作確認が楽になった話
h455h1
0
170
Compose-View Interop in Practice (mDevCamp 2024)
stewemetal
0
140
0→1と1→10の狭間で Javaという技術選定を振り返る/Reflecting on the Decision to Choose Java Between Scaling from 0 to 1 and 1 to 10
jaguar_imo
2
380
try! Swift Tokyo 初参加報告LT
hinakko2
0
220
Apache Hive 4 on Treasure Data
ryukobayashi
0
340
使ってみよう Azure AI Document Intelligence
kosmosebi
2
320
ADRを一年運用してみた/adr_after_a_year
hanhan1978
7
2.4k
TYPO3 v13 – The road to LTS: What's new and new APIs
luisasofie_xoxo
0
210
ゆるい個人開発のススメ
kuroppe1819
10
990
Fragment Composition of GraphQL
quramy
7
1k
VS Code をプロダクトにどう取り込むか
onomax
1
370
Featured
See All Featured
Visualization
eitanlees
136
14k
Happy Clients
brianwarren
92
6.4k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
357
22k
Product Roadmaps are Hard
iamctodd
44
9.7k
Imperfection Machines: The Place of Print at Facebook
scottboms
260
12k
Building Better People: How to give real-time feedback that sticks.
wjessup
355
18k
Thoughts on Productivity
jonyablonski
58
3.8k
Documentation Writing (for coders)
carmenintech
60
3.9k
Bash Introduction
62gerente
604
210k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
274
13k
Side Projects
sachag
451
41k
The Pragmatic Product Professional
lauravandoore
25
5.8k
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ΊΑ͏