Android 40 Devices and DisplaysWord格式文档下载.docx

上传人:b****4 文档编号:15860154 上传时间:2022-11-16 格式:DOCX 页数:22 大小:1.08MB
下载 相关 举报
Android 40 Devices and DisplaysWord格式文档下载.docx_第1页
第1页 / 共22页
Android 40 Devices and DisplaysWord格式文档下载.docx_第2页
第2页 / 共22页
Android 40 Devices and DisplaysWord格式文档下载.docx_第3页
第3页 / 共22页
Android 40 Devices and DisplaysWord格式文档下载.docx_第4页
第4页 / 共22页
Android 40 Devices and DisplaysWord格式文档下载.docx_第5页
第5页 / 共22页
点击查看更多>>
下载资源
资源描述

Android 40 Devices and DisplaysWord格式文档下载.docx

《Android 40 Devices and DisplaysWord格式文档下载.docx》由会员分享,可在线阅读,更多相关《Android 40 Devices and DisplaysWord格式文档下载.docx(22页珍藏版)》请在冰豆网上搜索。

Android 40 Devices and DisplaysWord格式文档下载.docx

Beflexible

Stretchandcompressyourlayoutstoaccommodatevariousheightsandwidths.

Optimizelayouts

Onlargerdevices,takeadvantageofextrascreenrealestate.Createcompoundviewsthatcombinemultipleviewstorevealmorecontentandeasenavigation.

Assetsforall

Provideresourcesfordifferentscreendensities(DPI)toensurethatyourapplooksgreatonanydevice.

Strategies

Sowheredoyoubeginwhendesigningformultiplescreens?

Oneapproachistoworkinthebasestandard(mediumsize, 

MDPI)andscaleitupordownfortheotherbuckets.Anotherapproachistostartwiththedevicewiththelargestscreensize,andthenscaledownandfigureouttheUIcompromisesyou'

llneedtomakeonsmallerscreens.

Formoredetailedinformationonthistopic,pleasevisit 

SupportingMultipleScreens.

Themes

GmailinHoloLight.

SettingsinHoloDark.

TalkinHoloLightwithdarkactionbar.

ThemesareAndroid'

smechanismforapplyingaconsistentstyletoanapporactivity.Thestylespecifiesthevisualpropertiesoftheelementsthatmakeupyouruserinterface,suchascolor,height,paddingandfontsize.Topromotegreatercohesionbetweenallappsontheplatform,AndroidprovidesthreesystemthemesthatyoucanchoosefromwhenbuildingappsforIceCreamSandwich:

∙HoloLight

∙HoloDark

∙HoloLightwithdarkactionbars

ApplyingthesethemeswillgoalongwayinhelpingyoutobuildappsthatfitrightintothegeneralvisuallanguageofAndroid.

Pickthesystemthemethatbestmatchestheneedsanddesignaestheticsforyourapp.Ifyourdesireistohaveamoredistinctlookforyourapp,usingoneofthesystemthemesasastartingpointforyourcustomizationsisagoodidea.Thesystemthemesprovideasolidfoundationontopofwhichyoucanselectivelyimplementyourownvisualstylings.

TouchFeedback

Usecolorandilluminationtorespondtotouches,reinforcetheresultingbehaviorsofgestures,andindicatewhatactionsareenabledanddisabled.

Wheneverausertouchesanactionableareainyourapp,provideavisualresponse.Thisletstheuserknowwhichobjectwastouchedandthatyourappis"

listening"

.

States

MostofAndroid'

sUIelementshavetouch-feedbackbuiltin,includingstatesthatindicatewhethertouchingtheelementwillhaveanyeffect.

Communication

Whenyourobjectsreacttomorecomplexgestures,helpusersunderstandwhattheoutcomeoftheoperationwillbe.Forexample,inRecents,whenyoustartswipingathumbnailleftorright,itstartstodim.Thishelpstheuserunderstandthatswipingwillcausetheitemtoberemoved.

Boundaries

Whenuserstrytoscrollpasttheupperorlowerlimitofascrollablearea,communicatetheboundarywithavisualcue.Forexample,ifauserattemptstoscrollpastthefirsthomescreenpanel,thescreencontenttiltstotherighttoindicatethatfurthernavigationinthisdirectionisnotpossible.ManyofAndroid'

sscrollableUIwidgets(e.g.listsorgridlists)alreadyhavesupportforboundaryfeedbackbuiltin.Ifyouarebuildingcustom,keepboundaryfeedbackinmindandprovideitfromwithinyourapp.

MetricsandGrids

Devicesvarynotonlyinphysicalsize,butalsoinscreendensity(DPI).Tosimplifythewayyoudesignformultiplescreens,thinkofeachdeviceasfallingintoaparticularsizebucketanddensitybucket.Thesizebucketsare 

handset(smallerthan600dp)and 

tablet 

(largerthanorequal600dp).Thedensitybucketsare 

LDPI, 

MDPI, 

HDPI,and 

XHDPI.Optimizeyourapplication'

sUIbydesigningalternativelayoutsforsomeofthedifferentsizebuckets,andprovidealternativebitmapimagesfordifferentdensitybuckets.

Spaceconsiderations

Devicesvaryintheamountofdensity-independentpixels(dp)theycandisplay.

Toseemore,visitthe 

ScreenSizesandDensitiesDeviceDashboard.

48dpRhythm

TouchableUIcomponentsaregenerallylaidoutalong48dpunits.

Why48dp?

Onaverage,48dptranslatetoaphysicalsizeofabout9mm(withsomevariability).Thisiscomfortablyintherangeofrecommendedtargetsizes(7-10mm)fortouchscreenobjectsanduserswillbeabletoreliablyandaccuratelytargetthemwiththeirfingers.

Ifyoudesignyourelementstobeatleast48dphighandwideyoucanguaranteethat:

∙yourtargetswillneverbesmallerthantheminimumrecommendedtargetsizeof7mmregardlessofwhatscreentheyaredisplayedon.

∙youstrikeagoodcompromisebetweenoverallinformationdensityontheonehand,andtargetabilityofUIelementso

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 初中教育 > 科学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1