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
Advanced shared elements with shape morphing | Jetpack Compose Tips
AI摘要
本视频涵盖移动应用开发中使用的高级英语词汇,重点介绍Jetpack Compose中的共享元素过渡和形状变形。学习者将掌握'transition'、'morph'、'clip'、'reveal pattern'和'animated visibility scope'等术语。详细的技术叙述为希望理解英语软件工程讨论的中级学习者提供了出色的听力练习。
学习统计
CEFR 等级
总词数
独特词汇
难度
字幕 (72 片段)
下载REBECCA FRANKS: Users love screens that feel fluid and show continuity between transitions.
In a previous video, we covered how to get started with the basics of shared elements in Jetpack Compose.
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.
[MUSIC PLAYING]
In Androidify, we are using the new material shapes that come as part of the Material 3 Expressive updates.
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.
Currently, we've transitioned between the two screens, but we don't have a nice animation between the two.
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.
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.
So for step 1, we use the same concept shown in the shared element video that's linked below.
Firstly, we need to make sure that the top level of our app we are using a SharedTransitionLayout.
We've placed our SharedTransitionLayout at our top level of the theme in order to use it all throughout the Androidify app.
We also set a composition local for the SharedTransitionScope so that we don't need to pass the scope around.
The next step is to ensure that we have an animated visibility scope, which drives the transition between the two screens.
We are using Navigation 3 in this sample, which provides a built-in composition local where you can access when needed.
完整字幕可在视频播放器中查看
核心词汇 (23)
将某物与另一物放在一起以增加总数、尺寸或质量。
大声呼喊某人的名字以引起注意。
'Same' 的意思是“相同的”或“一样的”。它用于描述两个或多个完全没有区别的事物。
评论 (0)
登录后评论互动模式
测验
正确答案:
分类
相关视频
Two-Minute Case Study - Artificial Intelligence: Sephora's Newest Beauty Advisor
The Best Way to Share Code Between Python Apps
The Lazy Loading Pattern: How to Make Python Programs Feel Instant
APPLE AIRTAG 2 REVERSE ENGINEERING
Stop Mixing FastAPI with Business Logic: Fix It with Ports & Adapters
English with Lucy
测验
正确答案:
观看视频时会出现测验
记忆技巧
来自此视频
免费开始学语言