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
59
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
Amazon ECS とマイクロサービスから考えるシステム構成
hiyanger
2
560
GitHub Actions × RAGでコードレビューの検証の結果
sho_000
0
260
個人アプリを2年ぶりにアプデしたから褒めて / I just updated my personal app, praise me!
lovee
0
340
CSS Linter による Baseline サポートの仕組み
ryo_manba
1
100
Multi Step Form, Decentralized Autonomous Organization
pumpkiinbell
1
740
苦しいTiDBへの移行を乗り越えて快適な運用を目指す
leveragestech
0
580
Amazon Bedrock Multi Agentsを試してきた
tm2
1
290
Linux && Docker 研修/Linux && Docker training
forrep
24
4.5k
ペアーズでの、Langfuseを中心とした評価ドリブンなリリースサイクルのご紹介
fukubaka0825
2
320
密集、ドキュメントのコロケーション with AWS Lambda
satoshi256kbyte
0
190
pylint custom ruleで始めるレビュー自動化
shogoujiie
0
120
PHPのバージョンアップ時にも役立ったAST
matsuo_atsushi
0
110
Featured
See All Featured
Designing for humans not robots
tammielis
250
25k
How to train your dragon (web standard)
notwaldorf
91
5.8k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
For a Future-Friendly Web
brad_frost
176
9.5k
Why You Should Never Use an ORM
jnunemaker
PRO
55
9.2k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
4
410
A Philosophy of Restraint
colly
203
16k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.3k
Optimising Largest Contentful Paint
csswizardry
34
3.1k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
160
15k
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ΊΑ͏