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
Designer's and Engineer's Thinking Styles
ninjinkun
0
89
Launchable Webinar テストを効率化して生産性を上げる方法
ninjinkun
2
490
ディープリンクの 設計と実装 - iOSDC2017
ninjinkun
18
9.6k
スマートフォンアプリ開発における共創的な開発チーム
ninjinkun
61
18k
ReSwiftでアプリの状態管理 / Reactive Swift Meetup
ninjinkun
9
16k
フリルのアプリ開発今昔物語
ninjinkun
3
2.1k
プロトタイピング合宿によるデザインリニューアル
ninjinkun
1
2.9k
デザイナーが仕事をしやすいアプリエンジニアを考える
ninjinkun
4
610
Square Fragmentやめるってよ
ninjinkun
13
3.4k
Other Decks in Programming
See All in Programming
【Go言語】golangci-lintの使い方
tomo1227
0
270
I/O Extended Android in Korea 2024 ~ Whats new in Android development tools
pluu
0
250
Jetpack for KMP
fornewid
1
290
HMSコンペ 11th Solution (team : kansai-kaggler)
t88
1
680
Clean Architecture by TypeScript & NestJS
ryounasso
0
150
AWS初心者ってどうやってAWSを学ぶ?〜アプリエンジニアがやってよかったアーキテクチャ学習方法〜
yamanashi_ren01
0
190
CSC307 Lecture 08
javiergs
PRO
0
330
유연한 Composable 설계
l2hyunwoo
0
380
入社1ヶ月でここまでやった!Findy Toolsインフラ支援の最適化
rvirus0817
6
1.4k
Microservices rules (July 2024) : what good looks like
cer
PRO
0
1.6k
MIERUNE BBQにおけるユーザー中心設計()
mierune
PRO
1
110
GraphQL はいいぞ! ~Laravel で学ぶ GraphQL 入門~
azuki
1
160
Featured
See All Featured
Reflections from 52 weeks, 52 projects
jeffersonlam
346
19k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
121
18k
The Pragmatic Product Professional
lauravandoore
29
6.1k
Into the Great Unknown - MozCon
thekraken
20
1.3k
Ruby is Unlike a Banana
tanoku
96
10k
Debugging Ruby Performance
tmm1
71
11k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
277
13k
Scaling GitHub
holman
458
140k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
325
21k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
105
6.8k
Building Effective Engineering Teams - LeadDev
addyosmani
47
2.2k
Building a Scalable Design System with Sketch
lauravandoore
458
32k
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ΊΑ͏