Home > News content

Google released the source code of Google I/O 2018 Android App

via:博客园     time:2018/8/14 14:01:25     readed:317

Google has a convention to publish the App source code for the current year in the months following the end of the annual I/O conference. Today, GoogleAnnounce public Google I/O 2018The source code of the Android App and has been hosted toGitHub.

Although the app's functionality is relatively simple, the main purpose is to act as an activity's scheduler, but it's usually a good indicator of what the visual aesthetic trends that Google will follow in a particular year. Similarly, for developers, the source code of the App will reveal the "anti-official recommendation" coding practice, through which you will learn how to best utilize the latest APIs and platforms.


Unlike the traditional ContentProvider + SyncAdapter architecture followed by the I/O 2017 App, the 2018 App is almost completely rewritten and it follows the newAndroid Architecture Component SystemAnd sync the code with the Android team's current proposal to build modern apps.

In addition, the overall approach followed in designing the App has undergone considerable changes and has become more modular. The development team said that this is followed“App Architecture Guide” suggestions made in . So they decided to write modular, testable, and maintainable code when determining the architecture of the app. They keep Activities and Fragments logically independent and move them toViewModels. They useLiveDataObserve the data and useData binding libraryBind the UI components in the layout to the App's data source.

The overall architecture of the app is shown below:


And Kotlin is Google's Android development language that is being promoted this year. This app is written with Kotlin. If you're learning or using Kotlin recently, take a look at how Google officially uses Kotlin to develop apps.

Please check for detailsHttps://android-developers.googleblog.com/2018/08/google-releases-source-for-google-io.html

China IT News APP

Download China IT News APP

Please rate this news

The average score will be displayed after you score.

Post comment

Do not see clearly? Click for a new code.

User comments

Related news