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
Android App 設計基礎
Search
Cloud Chen
June 18, 2014
Programming
1
200
Android App 設計基礎
講述一些在設計 Android App 常常會遇到的問題
Cloud Chen
June 18, 2014
Tweet
Share
Other Decks in Programming
See All in Programming
Best-Practices-for-Cortex-Analyst-and-AI-Agent
ryotaroikeda
1
110
AI によるインシデント初動調査の自動化を行う AI インシデントコマンダーを作った話
azukiazusa1
1
740
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
270
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6.1k
CSC307 Lecture 10
javiergs
PRO
1
660
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.8k
Smart Handoff/Pickup ガイド - Claude Code セッション管理
yukiigarashi
0
140
プロダクトオーナーから見たSOC2 _SOC2ゆるミートアップ#2
kekekenta
0
220
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.9k
インターン生でもAuth0で認証基盤刷新が出来るのか
taku271
0
190
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
600
Featured
See All Featured
Crafting Experiences
bethany
1
49
Information Architects: The Missing Link in Design Systems
soysaucechin
0
780
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
420
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
350
What does AI have to do with Human Rights?
axbom
PRO
0
2k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
440
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
Mobile First: as difficult as doing things right
swwweet
225
10k
30 Presentation Tips
portentint
PRO
1
220
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
GitHub's CSS Performance
jonrohan
1032
470k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Transcript
Android Design Guide Basic
ҝԿ㟬ඞਢೝ᮫ࣝԙ Android Design తҰࠣ૬᮫ࣝʁ (have to know)
Image Credit: Which? Tech Daily
• ᩋ Art ࡞ଞ၇ݪຊब֘၏త࡞ • ᩋ䓟తઃܭᢛ Android తੜଶߋܖ߹ (Design for
Android) • ᩋ٬㖽ᢛ PM ෆ။Ұ䬘㟬ௐ UI • ᩋ Everyone తෛ፦᫊Ұᴍʂ
᮫ԙଟղੳࢧԉ
૬৴㟬ҰఆՄೳ䉰աҎԼڥɿ ྃٱɼऴԙ፤౸٬㖽҃ੋඒज़ఏڙత൛໘ᒬࣜɼई ੇҝɿ • 640 x 960 (px) • 640
x 1136 (px) વޙब...
None
߈ఔࢣҝԿౖࣕʁ • ؟ᓫతఔࢣෆᚙݱɼൺྫࠜຊෆූʂʢʮब์େ बྃ㠷ʂʯṜछෆෛతࠜຊੋ…ʣ • 640 x 960 — 2
: 3 • 640 x 1136 — 40 : 71! • ࡏ Android ଟईੇᢛଟᦊນղੳతੜଶԼɼҎ pixel ҝᄸҐతࢥҡࠜຊੋഋ۩൵ܶʂ
720px 1280px 5” 1080px 1920px 5”
1920px 5” 1080px 5” ~ 4.35” 2.45”
1920px 1080px 5” ~ 4.35” 2.45” 1280px 720px 2.45” 4.35”
720 ~0.086 mm/px — 1080 ~0.058 mm/px — 1280 — ~0.086 mm/px 1920 — ~0.058 mm/px Ҏ px ҝᄸҐိઃܭ൛໘။۰౸త
ݻఆత pxɼࡏݻఆᦊນईੇతஔԼɼ֘ ஔత Point Density ӽߴɼଇࢹ᧷্ӽখ
ಹ֘ዎኄ㭎ʁ ༌ٿոզ㡎ʁ
Density-independent pixel dp / dip
pixel dp screen density ldpi 0.75 1 ~120 mdpi 1
1 ~160 hdpi 1.5 1 ~240 xhpdi 2 1 ~320 xxhdpi 3 1 ~480 xxxhdpi 4 1 ~640dpi
࠾༻ dip త֯ஔᢛઃܭ
1920px 1080px 5” ~ 4.35” 2.45” 1280px 720px 2.45” 4.35”
720 294 dip — 1080 441 dip — 1280 — 294 dip 1920 — 441 dip ܭࢉஔᓤྨԙԿछ dpi ൣᙝ Device Green : hdpi Device Blue: xhdpi
ෳᯑʁ㣛ʁᄠʁ ᔒ᮫ɼṜཫ༗ডኸʂ
1920px 1080px 5” ~ 2.4 1280px 720px width height green!
(hdpi) 480 dp 853 dp blue! (xhdpi) 540 dp 960 dp ܭࢉ൛໘༗ଟগ dp ՄҎ༻
ኺࠓఱى㟬ጯ֘ཁಓᢛṜᒬ၏ • ༻ dp తࢥҡိઃܭ Android app త layout •
ఏڙҎ dp ҝᄸҐత֤छᦊນईੇᢛղੳత layout తඪࣔ • վఏڙҎ dp ҝᄸҐతईੇن֨ɼࣕෆੋҎ px ҝᄸҐ • ༌ग़ූ߹֤छ dpi (mdpi, hdpi, xhpdi …) ྨൣᙝେখతᅷ 䈕
૾ਅతᔒఔࢣతࣄʂ
େࡨಛࡨ
༻ XML ိฤሜ Drawable ݩ݅ • Light-weight • Highly performance
• Sharp • Reusable
Drawable Resources • Bitmap-File (.png, .jpg, or .gif) • Nine-Patch
File (.9.png) • Layer List • More…
9-Patch File 1px black line Scalable area Content area
3 <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> 4 <item> 5 <shape> 6 <solid android:color="@color/theme_yellow"/>
7 </shape> 8 </item> 9 <item android:top="6dp"> 10 <shape> 11 <solid android:color="@color/theme_blue" /> 12 </shape> 13 </item> 14 </layer-list> Layer List
Layer List Bitmap Drawable ֎᧺ 䈕Ҋେখ 368 bytes 363 bytes
(don’t forget other dpi) 㕔ར ਗ਼ແൺ ކ ʢएࣗಈॖ์ʣ Ꮘೳ ීී ័ධ উ ഊ Layer List vs Bitmap Drawable