Android Kotlin Fundamentals | Training Courses
文章推薦指數: 80 %
Android Kotlin Fundamentals · Lesson 1: Build your first app · Lesson 2: Layouts · Lesson 3: Navigation · Lesson 4: Activity and fragment lifecycles ... Platform AndroidStudio GooglePlay Jetpack Kotlin Docs News Language English BahasaIndonesia Español–AméricaLatina Português–Brasil 中文–简体 日本語 한국어 Signin Training Platform AndroidStudio GooglePlay Jetpack Kotlin Docs News AndroidDevelopers Training AndroidKotlinFundamentals TheAndroidKotlinFundamentalscoursewascreatedbythe GoogleDevelopersTrainingteam.Inthecourse,youlearn AndroidKotlinprogrammingconceptsandbuildavarietyofapps. TheAndroidKotlinFundamentalscoursematerialsinclude: Coursecodelabs Starterapps andsolutioncode inGitHubforappsthatyoucreateinthecodelabs Prerequisites Thiscourseassumesthatyouknow(orcanquicklylearn)theKotlinprogramming language.TotaketheAndroidKotlinFundamentalscourse,werecommendthatyou haveatleasttwoyearsofexperienceinafull-fledgedobject-oriented programminglanguagesuchasJava,C++,orSmalltalk. Youshouldbefamiliarwithalltheconcepts,tools,andvocabularytaughtin Udacity'sfree KotlinBootcampforProgrammers course. YoushouldalsobecomfortablenavigatingGitHubandfamiliarwiththefollowing concepts: Basicmultithreadingandexceptionhandling. Howcodeisbuilt,compiled,andexecuted,ingeneralterms. Italsohelpstohaveanideaofwhatfunctionalprogrammingis,butit'snot required. Whatdoesthecoursecover? WerecommendthatyoutaketheAndroidKotlinFundamentalscodelabsinsequence, butit'snotarequirement. Lesson1:Buildyourfirstapp Lesson1teachesyouhowtosetupAndroidStudiotouseKotlin andhowtobuildapps.Youstartwith"HelloWorld"andmoveuptoanappthat usesimagefilesandaclickhandler.YoulearnhowAndroidprojectsare structured,howtouseandmodifyviewsinyourKotlinAndroidapp,andhow tomakesureyourappsarebackward-compatible.YoualsolearnaboutAPI levelsandtheAndroidJetpacklibraries. StartLesson1 Lesson2:Layouts InLesson2,youlearnhowtousetheAndroidStudioLayout Editortocreatelinearlayoutsandconstraintlayouts.Youcreateappsthat getanddisplayuserinput,respondtousertaps,andchangethevisibilityand colorofviews.Thislessonalsoteachesyouhowtousedatabindingto eliminateinefficientcallstothefindViewById()method. StartLesson2 Lesson3:Navigation InLesson3,youlearnhowtocreateusefulnavigationinan app.Youcreateafragmentandaddittoanapp,thenaddnavigationtotheapp usingtheAndroidStudionavigationgraph.Youaddanavigationdrawerandan optionsmenutoyourapp,andyouworkwiththeapp'sbackstack,changing thedestinationofthesystemBackbutton.Finally,youlearnhowtoinvoke anexternalactivityfromwithintheapp. StartLesson3 Lesson4:Activityandfragmentlifecycles InLesson4,youlearnabouttheactivityandfragment lifecycles,andyoulearnhowtomanagecomplexlifecyclesituations.Youwork withastarterappthatcontainsseveralbugsrelatedtotheAndroidlifecycle. Youaddloggingtotheapptobetterunderstandtheapp'slifecycleevents, andyoufixthebugsthattheappcontainsandaddsomeenhancementstothe app.YoualsolearnaboutAndroidJetpack'slifecyclelibrary,whichcan helpyoumanagelifecycleeventswithcodethat'sbetterorganizedand easiertomaintain. StartLesson4 Lesson5:Architecturecomponents Lesson5teachesyouhowtouseViewModelandLiveDataobjects. YoulearnhowtouseViewModelobjectstoenabledatatosurviveconfiguration changessuchasscreenrotations.Youconvertanapp'sUIdataintoencapsulated LiveDataandaddobservermethodsthatarenotifiedwhenthevalueofthe LiveDatachanges. YoualsointegrateLiveDataandViewModelwithdatabindingsothatthe viewsinyourlayoutcommunicatedirectlywithViewModelobjects,without usingtheapp'sfragmentstorelayinformation.Thistechniquesimplifies yourcodeandeliminatestheneedforclickhandlersintheUIcontrollers. StartLesson5 Lesson6:Roomdatabaseandcoroutines Lesson6teachesyouhowtousethe Room databaselibrary.Roomtakescareofmanyofthechoresofsettingupand configuringadatabase,andsimplifiesthecodeforinteractingwiththe database.YoulearnhowtouseKotlincoroutinestomovedatabaseoperations awayfromthemainthread,andyoulearnmoreaboutusingViewModeland LiveDatawithappnavigation. StartLesson6 Lesson7:RecyclerView Lesson7teachesyouhowtouseaRecyclerViewtoefficiently displaylistsandgridsofitems.Forcomplexlistsandgrids,youlearnwaysto makeRecyclerViewmoreefficientandyourcodeeasiertomaintainand extend.YoulearnhowtomakeitemsinaRecyclerViewclickable.You alsolearnhowtoaddmorethanoneviewholderandlayouttolistsand gridsinaRecyclerView,forexample,toaddaheaderinyourapp. StartLesson7 Lesson8:Connectingtotheinternet Lesson8teachesyouhowtousecommunity-developedlibraries toconnecttoawebservicetoretrieveanddisplaydata.Youlearnhowto handlepotentialnetworkerrorsandusetheGlidelibrarytoloadanddisplay photosfromtheinternet.YoualsobuildaRecyclerViewanduseitto displayagridofimages. StartLesson8 Lesson9:Repository Lesson9teachesyouhowtoaddarepositorytoabstractthe datalayerandprovideacleanAPItotherestoftheappinyourAndroidKotlin app.YoualsolearnhowtouseWorkManagertoschedulebackgroundtasksinan efficientandoptimizedway. StartLesson9 Lesson10:Designingforeveryone ThislessonteachesthebasicsofAndroidappdesign.Itintroduces themesandstyles,materialdesign,andhowtomakeyourappmoreaccessible toeveryone. StartLesson10 ContentandcodesamplesonthispagearesubjecttothelicensesdescribedintheContentLicense.JavaandOpenJDKaretrademarksorregisteredtrademarksofOracleand/oritsaffiliates. Lastupdated2021-11-19UTC. [{ "type":"thumb-down", "id":"missingTheInformationINeed", "label":"MissingtheinformationIneed" },{ "type":"thumb-down", "id":"tooComplicatedTooManySteps", "label":"Toocomplicated/toomanysteps" },{ "type":"thumb-down", "id":"outOfDate", "label":"Outofdate" },{ "type":"thumb-down", "id":"samplesCodeIssue", "label":"Samples/codeissue" },{ "type":"thumb-down", "id":"otherDown", "label":"Other" }] [{ "type":"thumb-up", "id":"easyToUnderstand", "label":"Easytounderstand" },{ "type":"thumb-up", "id":"solvedMyProblem", "label":"Solvedmyproblem" },{ "type":"thumb-up", "id":"otherUp", "label":"Other" }] Twitter Follow@AndroidDevonTwitter YouTube CheckoutAndroidDevelopersonYouTube LinkedIn ConnectwiththeAndroidDeveloperscommunityonLinkedIn MoreAndroid Android AndroidforEnterprise Security Source News Blog Podcasts Discover Gaming MachineLearning Privacy 5G AndroidDevices Largescreens WearOS AndroidTV Androidforcars AndroidThings ChromeOSdevices Releases Android11 Android10 Pie Oreo Nougat Marshmallow Lollipop KitKat DocumentationandDownloads AndroidStudioguide Developersguides APIreference DownloadStudio AndroidNDK Support Reportplatformbug Reportdocumentationbug GooglePlaysupport Joinresearchstudies Android Chrome Firebase GoogleCloudPlatform Allproducts Privacy License Brandguidelines Getnewsandtipsbyemail Subscribe Language English BahasaIndonesia Español–AméricaLatina Português–Brasil 中文–简体 日本語 한국어
延伸文章資訊
- 1一系列的Kotlin講座及實戰工作坊即將來臨 - Facebook
A series of Kotlin Seminar & Codelab is comming Soon~ 一系列的Kotlin講座及實戰工作坊即將來臨~ 記緊以下的日子~ 31-Aug Kot...
- 2Codelabs for Android Kotlin Fundamentals | Training Courses
Codelabs for Android Kotlin Fundamentals · Lesson 1: Build your first app · Lesson 2: Layouts · L...
- 3Android Kotlin Fundamentals | Training Courses
Android Kotlin Fundamentals · Lesson 1: Build your first app · Lesson 2: Layouts · Lesson 3: Navi...
- 4Add a map to your Android app (Kotlin) | Google Developers
This codelab teaches you how to integrate Maps SDK for Android with your app and use its core fea...
- 5Google Codelabs
They cover a wide range of topics such as Android Wear, Google Compute Engine, Project Tango, and...