关闭

关闭

封号提示

内容

首页 Android User Interface Development - Beginners …

Android User Interface Development - Beginners Guide.pdf

Android User Interface Developm…

上传者: xuanguang 2013-11-03 评分1 评论0 下载44 收藏0 阅读量57 暂无简介 简介 举报

简介:本文档为《Android User Interface Development - Beginners Guidepdf》,可适用于手机软件领域,主题内容包含AndroidUserInterfaceDevelopmentBeginner'sGuideQuicklydesignanddevelopcompe符等。

AndroidUserInterfaceDevelopmentBeginner'sGuideQuicklydesignanddevelopcompellinguserinterfacesforyourAndroidapplicationsJasonMorrisBIRMINGHAMMUMBAIDownloadfromWow!eBook<wwwwowebookcom>AndroidUserInterfaceDevelopmentBeginner'sGuideCopyrightPacktPublishingAllrightsreservedNopartofthisbookmaybereproduced,storedinaretrievalsystem,ortransmittedinanyformorbyanymeans,withoutthepriorwrittenpermissionofthepublisher,exceptinthecaseofbriefquotationsembeddedincriticalarticlesorreviewsEveryefforthasbeenmadeinthepreparationofthisbooktoensuretheaccuracyoftheinformationpresentedHowever,theinformationcontainedinthisbookissoldwithoutwarranty,eitherexpressorimpliedNeithertheauthornorPacktPublishing,anditsdealersanddistributorswillbeheldliableforanydamagescausedorallegedtobecauseddirectlyorindirectlybythisbookPacktPublishinghasendeavoredtoprovidetrademarkinformationaboutallofthecompaniesandproductsmentionedinthisbookbytheappropriateuseofcapitalsHowever,PacktPublishingcannotguaranteetheaccuracyofthisinformationFirstpublished:FebruaryProductionReference:PublishedbyPacktPublishingLtdLincolnRoadOltonBirmingham,BPA,UKISBNwwwpacktpubcomCoverImagebyCharwakA(charwakgmailcom)CreditsAuthorJasonMorrisReviewersDavidJGroomMartinSkansAcquisitionEditorChaitanyaApteDevelopmentEditorReshmaSundaresanTechnicalEditorHarshitShahCopyEditorNehaShettyIndexerTejalDaruwaleEditorialTeamLeaderAksharaAwareProjectTeamLeaderPriyaMukherjiProjectCoordinatorShubhanjanChatterjeeProofreaderJoelTJohnsonGraphicsNileshRMohiteProductionCoordinatorsKruthikaBangeraAparnaBhagatCoverWorkKruthikaBangeraAbouttheAuthorJasonMorrishasworkedonsoftwareasdiverseasfruittrackingsystems,insurancesystems,andtravelsearchandbookingenginesHehasbeenwritingsoftwareforaslongashecanrememberHeiscurrentlyworkingasaSoftwareArchitectforTravelstartinSouthAfricaHeworksonmultiplefrontendandmiddlewaresystems,leveragingavarietyofJavabasedtechnologiesThepeopleI'dliketothankmostfortheirdirect,orindirecthelpinwritingthisbookaremywifeCaronMorris,myfatherMikeMorris,mymomJayneMorris,andtherestofmyfamilyfortheirloveandsupportI'dalsoliketothankWayne,Stuart,Angela,andJames,andeveryoneonmyteamatTravelstartFinallyaverybigthankstoMartinSkansforhisinvaluableinputAbouttheReviewerMartinSkansgraduatedfromLundUniversityinSweden,withaMaster'sdegreeinComputerScienceAfteracoupleofyearsintheonlinemarketingindustry,hemovedontobecomeadeveloperforTravelstart,anonlinetravelagencyHerelocatedtoCapeTownandiscurrentlyworkingonTravelstart'sAfricantravelplatformwhichhasbeenrecentlylaunchedforthemobilemarketwwwPacktPubcomSupportfiles,eBooks,discountoffersandmoreYoumightwanttovisitwwwPacktPubcomforsupportfilesanddownloadsrelatedtoyourbookDidyouknowthatPacktofferseBookversionsofeverybookpublished,withPDFandePubfilesavailableYoucanupgradetotheeBookversionatwwwPacktPubcomandasaprintbookcustomer,youareentitledtoadiscountontheeBookcopyGetintouchwithusatservicepacktpubcomformoredetailsAtwwwPacktPubcom,youcanalsoreadacollectionoffreetechnicalarticles,signupforarangeoffreenewslettersandreceiveexclusivediscountsandoffersonPacktbooksandeBookshttp:PacktLibPacktPubcomDoyouneedinstantsolutionstoyourITquestionsPacktLibisPackt'sonlinedigitalbooklibraryHere,youcanaccess,readandsearchacrossPackt'sentirelibraryofbooksWhySubscribe‹FullysearchableacrosseverybookpublishedbyPackt‹Copyandpaste,printandbookmarkcontent‹OndemandandaccessibleviawebbrowserFreeAccessforPacktaccountholdersIfyouhaveanaccountwithPacktatwwwPacktPubcom,youcanusethistoaccessPacktLibtodayandviewnineentirelyfreebooksSimplyuseyourlogincredentialsforimmediateaccessTableofContentsPrefaceChapter:DevelopingaSimpleActivityDevelopingourfirstexampleCreatingtheprojectstructureTimeforaction–settinguptheAndroidSDKTimeforaction–startinganewprojectExaminingtheAndroidprojectlayoutTimeforaction–runningtheexampleprojectThescreenlayoutThelayoutXMLfileResourceselectionqualifiersTimeforaction–settingupthequestionactivityPopulatingaViewandaViewGroupTimeforaction–askingaquestionTimeforaction–addingaspaceforanswersTimeforaction–addingmorebuttonsDefiningcommondimensionsLimitationsofthelayoutXMLformatPopulatingtheQuestionActivityTimeforaction–writingmoreJavacodeDynamicallycreatingwidgetsTimeforaction–puttingthequestionsonthescreenHandlingeventsinAndroidSummaryChapter:PresentingDataforViewsListingandselectingdataListViewchoicemodesNoselectionmode–CHOICEMODENONESingleselectionmode–CHOICEMODESINGLEMultipleselectionmode–CHOICEMODEMULTIPLETableofContentsiiAddingheaderandfooterwidgetsCreatingasimpleListViewTimeforaction–creatingafastfoodmenuStylingthestandardListAdaptersDefiningstandarddimensionsTimeforaction–improvingtherestaurantlistCreatingcustomadaptersCreatingamenuforTheBurgerPlaceTimeforaction–creatingaBurgeritemlayoutTimeforaction–presentingBurgerobjectsCreatingTheBurgerPlaceActivityclassTimeforaction–implementingTheBurgerPlaceActivityRegisteringandstartingTheBurgerPlaceActivityUsingtheExpandableListViewclassCreatingExpandableListAdapterimplementationsUsingtheGridViewclassTimeforaction–creatingthefruiticonDisplayingiconsinaGridViewTimeforaction–buildingthefruitmenuTimeforaction–creatingtheFourBucketsActivitySummaryChapter:DevelopingwithSpecializedAndroidWidgetsCreatingarestaurantreviewapplicationTimeforaction–creatingtheroboticreviewprojectstructureBuildingaTabActivityCreatingtabiconsAndroidtabsandiconsImplementingtheReviewActivityTimeforaction–writingtheReviewActivityclassTimeforaction–creatingtheReviewlayoutWorkingwithswitcherclassesTimeforaction–turningontheTextSwitcherCreatingasimplephotogalleryTimeforaction–buildingthePhotostabCreatingathumbnailwidgetImplementingaGalleryAdapterTimeforaction–theGalleryAdapterTimeforaction–makingthegalleryworkBuildingthereservationtabTimeforaction–implementingthereservationlayoutTimeforaction–initializingthereservationtabTableofContentsiiiTimeforaction–listeningtotheSeekBarTimeforaction–selectingdateandtimeCreatingcomplexlayoutswithInclude,Merge,andViewStubsUsingIncludetagsMerginglayoutsUsingtheViewStubclassSummaryChapter:LeveragingActivitiesandIntentsExploringtheActivityclassUsingBundleobjectsTimeforaction–buildinganexamplegame:"guessmynumber"CreatingandconsumingintentsDefiningIntentactionsPassingdatainanIntentAddingextradatatoanIntentUsingadvancedIntentfeaturesGettingdatabackfromanIntentTimeforaction–viewingphonebookcontactsSummaryChapter:DevelopingNonlinearLayoutsTimeforaction–creatingalayoutsexampleprojectFrameLayoutCommonusesTimeforaction–developingaFrameLayoutexampleTableLayoutCommonusesUsingTableLayoutforamemorygameTimeforaction–developingasimplememorygameAbsoluteLayoutCustomLayoutsDevelopingyourownLayoutsTimeforaction–creatingacustomlayoutUsingtheCircleLayoutTimeforaction–finishingtheCircleLayoutexampleRelativeLayoutCommonusesIntegratingtheRelativeLayoutTimeforaction–creatingacontacteditorTimeforaction–integrationwiththelayoutexampleSlidingDrawerCommonusesTableofContentsivCreatingaSlidingDrawerexampleTimeforaction–creatingaSlidingDrawerTimeforaction–slidingdrawerintegrationSummaryChapter:ValidatingandHandlingInputDataDealingwithundesirableinputCorrectlylabelinginputSignalingundesirableinputRecoveringfromundesirableinputGivingusersdirectfeedbackAvoidinginvalidinputentirelyCapturingdateandtimeUsingspinnersandListViewforselectionChangingthedatasetDisablingselectionsCapturingtextinputAutocompletingtextinputBuildingactivitiesforresultsGenericfilteringsearchActivityTimeforaction–creatingtheListItemSelectionActivityTimeforaction–creatinganArrayAdapterTimeforaction–creatingtheCursorAdapterTimeforaction–settinguptheListViewTimeforaction–filteringthelistTimeforaction–returningtheselectionUsingtheListItemSelectionActivitySummaryChapter:AnimatingWidgetsandLayoutsUsingstandardAndroidanimationsTimeforaction–animatinganewsfeedUsingflipperandswitcherwidgetsUsingtheImageSwitcherandTextSwitcherimplementationsAnimatinglayoutwidgetsTimeforaction–animatingaGridViewCreatingCustomAnimationsTimeforaction–writingacustomanimationTimeforaction–makingaButtonvanishSummaryChapter:DesigningContentcentricActivitiesConsideringdesignoptionswhendisplayingcontentonanAndroiddeviceTableofContentsvConsideringuserbehaviorDrawinguserattentionDisplayingcontentwiththeWebViewclassUsingaWebViewobjectTimeforaction–creatingarecipeviewerapplicationTakingWebViewfurtherCreatingrelativelayoutsforcontentdisplayTakingfulladvantageofRelativeLayoutConsideringAndroidlayoutconstraintsStylingTextViewobjectsTimeforaction–developingspecializedcontentviewsDevelopinganonlinemusicstoreDesigningthemusicstoreDevelopingthemusicstoreTimeforaction–buildingatrackitemTimeforaction–developingthemainuserinterfacelayoutTimeforaction–developingthemainuserinterfaceJavacodeSummaryChapter:StylingAndroidApplicationsWorkingwithstyleresourcesUsingshaperesourcesHowshapesbehaveRenderinglinesTimeforaction–drawingabrokenlineRenderingrectanglesTimeforaction–creatingaroundedborderRenderingovalsTimeforaction–applyingagradienttoanovalshapeRenderingringsTimeforaction–renderingaspinnerringDefininglayersStretchingusingninepatchimagesCreatingninepatchimagesUsingbitmapimagesinAndroidHandlingdifferentscreensizesHandlingdifferentscreendensitiesHandlingconfigurationchangesProvidinglandscapelayoutsProvidingtextinputonalandscapelayoutAlteringscreencontentSummaryDownloadfromWow!eBook<wwwwowebookcom>TableofContentsviChapter:BuildinganApplicationThemeCreatingabasiccalculatorlayoutDesigningastandardcalculatorTimeforaction–buildingthestandardcalculatorBuildingthecalculatorstylingTimeforaction–creatingthebuttonimagesTimeforaction–stylingthecalculatorbuttonsTimeforaction–stylingthedisplayScientificlandscapelayoutDefiningstringresourcesforthescientificlayoutStylingthescientificlayoutBuildingthescientificlayoutTimeforaction–codingthescientificlayoutHandlingtheActivityrestartSupportinghardwarekeyboardsAddingindisplayanimationsTimeforaction–animatingthedisplaySummaryAppendix:PopquizanswersChapterLayoutsasXMLflesPopulatinganactivityChapterListviewsandadaptersChapterGalleryobjectsandImageViewsChapterIntentsActivitiesChapterCustomlayoutsChapterTextinputChapterTheWebViewwidgetWebViewversusnativelayoutsChapterLayoutresourcesNinePatchImagesAndroidresourcesIndexPrefaceOnthJanuary,,AppleofficiallylaunchedtheiPhone,andtheworldofuserinterfacedesignshiftedWhiletabletPCshadbeenaroundforawhile,theiPhonewasthefirstdevicetogivesomanypeopleaportabletouchscreen,andpeopleloveditJustoverayearlater,GoogleandtheOpenHandsetAllianceannouncedAndroidwhichinmanywaysisthedirectcompetitortoiPhoneWhatisitabouttouchscreenphonesthatweloveTheanswerissimplefeedbackTouchscreensofferawaytodirectlymanipulateonscreenobjects,whichinthepasthadtobedriventhroughakeyboard,mouse,joystick,orotherinputdeviceThetouchscreenmodelofdirectmanipulationhasalargeimpactonthewaywethinkaboutouruserinterfacesasdevelopers,andchangestheexpectationsauserhasfortheapplicationTouchscreendevicesrequireustostopthinkingintermsofforms,andstartthinkingaboutobjectorienteduserinterfacesAndroidisusedastheprimaryoperatingsystemforarapidlyexpandingrangeofconsumerelectronics,including:‹Smartphones‹Netbooks‹Tablets‹SomedesktopsystemsWhileallofthesedeviceshavedifferentpurposesandspecifications,allofthemrunAndroidThisisunlikemanyotheroperatingenvironmentswhicharealmostalwayshaveaspecialpurposeTheservicesandtheAPIstheyprovidetodevelopersgenerallyreflecttheirtargethardwareAndroidontheotherhandmakestheassumptionthatasingleapplicationmayberequiredtorunonmanydifferenttypesofdevices,withverydifferenthardwarecapabilitiesandspecifications,andmakesitaseasyaspossiblefordeveloperstohandlethedifferencesbetweenthesedevicessimplyandelegantlyPrefaceNewchallengesAsAndroidandthetouchscreendevicesitpowersbecomeincreasinglycommon,theywillbringanewsetofchallengestouserinterfacedesignanddevelopment:‹Yougenerallydon'thaveamouse‹Youmayhavemorethanonepointingdevice‹Youoftendon'thaveakeyboard‹Anykeyboardthatdoesexistmaybeasoftwarekeyboard‹Asoftwarekeyboardmayconsumesomeofyourapplication'sscreenspaceThesoftwarekeyboardreducestheamountofscreenspaceavailabletoyourapplication,andinmuchthesamevein,ifthereisahardwarekeyboardpresentitmayormaynotalwaysbeexposedtotheuserTherefore,notonlyaredifferentAndroiddevicesdifferent,buttheymayalsoappeartochangefeatureswhileyourapplicationisrunningTheruleoffingerMostAndroiddeviceshavetouchscreens(althoughthisisnotarequirement)Thefirstrestrictionplacedonanytouchscreenuserinterfaceisthesizeofthehumanforefinger,whichofcoursevarieswidelyfromonepersontoanotherIfawidgetistoosmallonthescreen,itwon'tbeclearwhattheuseristryingtotouchYou'llnoticethatmostAndroidwidgetstakeupplentyofspace,andhavemorethanthenormalamountofpaddingaroundthemOnatouchscreendevice,youcan'trelyonpixelperfectprecisionYouneedtomakesurethatwhentheusertouchesawidget,theymakecontact,andtheydon'taccidentallytouchanotherwidgetThemagictouchAnotherimpacttouchscreenshaveonuserinterfacedesignisthatanapplicationandallthewidgetsthatitusesmustbeentirelyselfexplanatory(evenmorethanusual)Fartoooften,wesubstitutegooduserinterfaceplanninganddesignwitharolloverortooltiptoindicateawidget'sfunctionOnatouchscreendevice,thereisnomouseorpointingdeviceThefirstinteractionithaswiththeuseriswhentheytouchit,andtheywillexpectsomethingtohappenAtouchysubjectMostAndroiddeviceshaveatouchscreen,butit'snotarequirementThequalityofatouchscreenalsovarieswildlyfromdevicetodeviceThecategoryoftouchscreensandtheircapabilitieswillalsovaryfromonedevicetothenext,dependingontheintendeduseofthedeviceandoftenitsintendedmarketsegmentPrefaceAsmallerviewontheworldMostAndroiddevicesaresmall,andasaresulthavesmallerscreensandgenerallyfewerpixelsthananormalPCorlaptopThislackofsizelimitsthesizeofthewidgetsWidgetsmustbebigenoughtotouchsafely,butwealsoneedtopackasmuchinformationontothescreenaspossibleSodon'tgiveyourusersinformationthattheydon'twant,andalsoavoidaskingthemforinformationyoudon'tneedClassicuserinterfaceprincipalsHerearesomecoreguidelineswhicheveryuserinterfaceshouldfollowTheseguidelinesarewhatwillkeepyourusershappy,andensureyourapplicationissuccessfulThroughouttherestofthebook,we'llbewalkingthroughtheseguidelineswithpracticalexamplesofimprovementsthatcanbemadetoauserinterfaceConsistencyThisisthecornerstoneofgooduserinterfacedesignAbuttonshouldlooklikeabuttonMakesurethatthelayoutofeachscreenhasarelationshipwitheveryotherscreeninyourapplicationPeopleoftenmistakethisprinciplefor"sticktotheplatformlookandfeel"Lookandfeelisimportant,consistencymostlyappliestothelayoutandoverallexperienceoftheapplication,ratherthanthecolorschemeRecyclingyourinterfaceTheeasiestwaytomaintainaconsistentuserinterface,istorecycleasmuchofitaspossibleAtfirstglance,thissuggestionlooksmerelylikea"goodobjectoriented"practiceHowever,acloserlookwillrevealwaystoreusegraphicalwidgetsinwaysyouhadn'tthoughtofBychangingthevisibilityofvariouswidgets,oryoucanreuseaneditscreentoviewlistitemsoftheintendedtypeSimplicityThisisespeciallyimportantinaphonebasedapplicationOften,whenauserencountersanewapplication,it'sbecausetheyarelookingforsomethingTheymaynothavethetime(ormoreoftenpatience)tolearnanewuserinterfaceMakesurethatyourapplicationasksforaslittleaspossible,andguidestheusertotheexactinformationtheywantinasfewstepsaspossiblePrefaceTheZenapproachGenerally,whenyouareusingamobiledevice,yourtimeislimitedYoumayalsobeusinganapplicationinlessthanidealcircumstances(perhaps,inatrain)Thelesserinformationauserneedstogiveanapplication,andthelessertheyneedtoabsorbfromit,thebetterStrippingawayoptionsandinformationalsoleadstoashorterlearningcurveAndroid'shiddenmenuAveryusefulfeatureofAndroidisthehiddenmenustructureThemenuisonlyvisiblewhentheuserpressesthe"Menu"button,whichwouldgenerallymean,they'relookingforsomethingthatisn'tcurrently

类似资料

该用户的其他资料

Learn.Java.for.Android.Development.pdf

Beginning.Android.2.(Apress,.2010,.1430226293).pdf

The.Android.Developers.Cookbook.pdf

Beginning Android Application Development.pdf

Learning Android.pdf

职业精品

精彩专题

中秋节除了赏月,你还想怎么过?

“仰头望明月,寄情千里光”,算算你有多久没回家了。庆幸这个中秋节赶上了国庆节,不用悲伤“故乡再无春夏,只有秋冬”,独自一人赏月,8天长假,回家一趟,妥妥的!

用户评论

0/200
    暂无评论
上传我的资料

精选资料

热门资料排行换一换

  • 自己整理汉语拼音字母表卡片 读音…

  • 沧海月明珠有泪,蓝田日暖玉生烟—…

  • 房地产活动策划方案.doc

  • 知难行易 辩论赛 知难行易.doc

  • 办税服务厅人员培训教材.doc

  • 水法律、法规试题库 - 江苏省水…

  • 商业银行信用风险管理.doc

  • 古琴音乐中的爱情故事.doc

  • 高一英语必修一Unit1知识点总…

  • 资料评价:

    / 299
    所需积分:0 立即下载

    意见
    反馈

    返回
    顶部