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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
21
7.3k
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
690
CSC307 Lecture 04
javiergs
PRO
0
660
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
180
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
720
SourceGeneratorのススメ
htkym
0
200
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
460
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
1
2.6k
Best-Practices-for-Cortex-Analyst-and-AI-Agent
ryotaroikeda
1
110
CSC307 Lecture 08
javiergs
PRO
0
670
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
200
CSC307 Lecture 10
javiergs
PRO
1
660
Featured
See All Featured
The Language of Interfaces
destraynor
162
26k
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
450
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Believing is Seeing
oripsolob
1
56
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
110
What does AI have to do with Human Rights?
axbom
PRO
0
2k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
180
The untapped power of vector embeddings
frankvandijk
1
1.6k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.7k
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