The video owner has disabled playback on external websites.

This video is no longer available on YouTube.

This video cannot be played right now.

Watch on YouTube

解锁AI学习工具

注册即可使用强大工具,帮助你从每个视频中更快地学习。

场景解析 短语猎手 词卡复习 跟读练习 语音回放
免费注册
B1 中级 英语 7:25 1,272 单词 Science & Tech

Advanced shared elements with shape morphing | Jetpack Compose Tips

English with Lucy · 11,147 次观看 · 添加于 2 个月前

AI摘要

本视频涵盖移动应用开发中使用的高级英语词汇,重点介绍Jetpack Compose中的共享元素过渡和形状变形。学习者将掌握'transition'、'morph'、'clip'、'reveal pattern'和'animated visibility scope'等术语。详细的技术叙述为希望理解英语软件工程讨论的中级学习者提供了出色的听力练习。

学习统计

B1

CEFR 等级

1,272

总词数

360

独特词汇

4/10

难度

词汇多样性 28%

字幕 (72 片段)

下载
00:00

REBECCA FRANKS: Users love screens that feel fluid and show continuity between transitions.

00:05

In a previous video, we covered how to get started with the basics of shared elements in Jetpack Compose.

00:10

In this tip, we will cover a more advanced example application of shared elements and how you can also add moments of delight to your app.

00:18

[MUSIC PLAYING]

00:24

In Androidify, we are using the new material shapes that come as part of the Material 3 Expressive updates.

00:30

We have two screens, the Creation screen that shows the camera button and the Camera screen that shows the camera viewfinder and the related buttons.

00:39

Currently, we've transitioned between the two screens, but we don't have a nice animation between the two.

00:44

So what if we wanted to transform between the Take Photo button, which is this delicious cookie shape, to the full-screen square that the camera screen takes on as a shared element, slowly having the cookie reveal the camera screen as it grows in size and transforms to the screen's rectangle shape.

01:03

We need to do three things to achieve this animation-- use shared elements to grow from the Photo button to the camera screen; reveal the camera screen as the button grows in size; and clip the shared element to the morphing shape.

01:16

So for step 1, we use the same concept shown in the shared element video that's linked below.

01:22

Firstly, we need to make sure that the top level of our app we are using a SharedTransitionLayout.

01:28

We've placed our SharedTransitionLayout at our top level of the theme in order to use it all throughout the Androidify app.

01:35

We also set a composition local for the SharedTransitionScope so that we don't need to pass the scope around.

01:41

The next step is to ensure that we have an animated visibility scope, which drives the transition between the two screens.

01:48

We are using Navigation 3 in this sample, which provides a built-in composition local where you can access when needed.

完整字幕可在视频播放器中查看

核心词汇 (23)

add A1 verb

将某物与另一物放在一起以增加总数、尺寸或质量。

call A1 verb

大声呼喊某人的名字以引起注意。

same A1 adjective

'Same' 的意思是“相同的”或“一样的”。它用于描述两个或多个完全没有区别的事物。

本视频中的语法

用练习题学习

从这个视频生成词汇、语法和理解练习

词汇与语法 理解测验 雅思考试 写作练习
注册开始练习
还没有评论。成为第一个分享想法的人!

注册解锁全部功能

追踪进度、保存词汇、练习题目

免费开始学语言