Google recently open source application for this year's Google I demonstrate the latest features of Android I / O conference / O Android App.
Google I / O Android App in the Google I / O conference on the new version of Android demo application for the use of project code iosched . This year's application significantly modify existing functionality and adds several new features, according to Takeshi Hagikura introduction of Google engineers, we can see some interesting characteristics, and for developers, which is currently studying the new Android characteristic best practices developed.
Gestures
The first is the introduction of Android Q completely gestures, which allows users to directly use gestures to navigate between different pages, Google I / O Android App 2019 is the first version fully supports the application of this feature.
Discussion and improvement details:
Dark theme
Android Q introduced another new feature is the new system of Diablo theme, it applies to applications running on the Android system UI and Android devices, it is also integrated into the Google I / O Android App version in 2019. Diablo theme brings many benefits to developers, such as the ability to reduce power consumption for low vision and sensitivity to glare of the screen users can improve content visibility.
Discussion and improvement details:
- https://github.com/google/iosched/commit/c635ca7abaf4bea91643a5568e360d227d459f94
- https://github.com/google/iosched/commit/317e0f98020ce10507cb3c6594c2133e139c4277
- https://github.com/google/iosched/commit/986c76164bf3df692f34af1276297aacdeaa8e10
改进了日程 UI(schedule UI)
去年版本的 Google I/O Android App 采用了带有水平滑动选项卡的日程 UI,每个选项卡代表一个会议日。2019 年版本,更改了 UI 以解决一些可用性和性能问题。例如,当选定相应日程时,所有选项卡中的视图都会同时呈现,这可以显着加速 UI 变化,尤其是在低端设备上。
新的日程 UI 是单个流,允许应用仅呈现可见内容,用户可以通过选择 UI 顶部的日期轻松跳转到另一个会议日。
相关讨论与改进细节:
- https://github.com/google/iosched/commit/4ee7a1772f2b76b17533c5b14890811015d46160
- https://github.com/google/iosched/commit/23295883d0ef74bdc358ae8b5615dda33a6a6637
导航组件
引入了 Navigation 组件,将今年的应用简化为 Single Activity 应用,这带来了几大好处:
- 能够在导航编辑器中一目了然地查看所有过渡,简化了启动会话详细信息和启动操作中的映射
- 删除了用于处理向前和向后导航的样板代码
- Fragments 之间的参数使用 Safe Args gradle 插件进行静态类型化
相关讨论与改进细节:
- https://github.com/google/iosched/commit/3917256b8d8e55596d526e431c70008310012460
- https://github.com/google/iosched/commit/2c3431369951824c42c8f5e20bb34fdaa0eae94d
- https://github.com/google/iosched/commit/4baf5b5f4daa2a2d53e65a96b59dd90f80633a45
- https://github.com/google/iosched/commit/6c69712ccb27f3875c19b9dfcc6946dd52c0e02c
全文搜索
今年的应用还添加了搜索功能,以便快速查找会议与演讲者等信息。
此外还有各种小改进,包括主页 UI 变化和远程配置等。
此版本完全使用 Kotlin 重写,并使用 Gradle 构建系统。官方表示,使用 Kotlin 更加符合他们对现代 Android 架构的思考,Kotlin 拥有简洁和强大的语法、对安全的可空性和不变性的支持可以使代码更具弹性。
更多内容查看: