Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
How to Motion Editor - Report from Android Dev ...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
mochico
November 15, 2019
Technology
1.7k
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
How to Motion Editor - Report from Android Dev Summit 2019
mochico
November 15, 2019
Transcript
27 slides
How to Motion Editor Report from Android Dev Summit 2019
@mochico
About me mochico(@_mochicon_) Android / Java / Kotlin Techbooster /
技術書典
Memory of Android Dev Summit 2019
What's New in Android Studio Design Tools https://youtu.be/vqDwSK5t7Hk?t=1172
What is Motion Editor
What is the MotionLayout Subclass of ConstraintLayout Define motions by
XML Included in ConstraintLayout2.0
How to use Motion Editor
Prepare to use Motion Editor Android Studio 4.0+ implementation ‘androidx.constraintlayout:constraintlayout:2.0.0-beta3'
classpath 'com.android.tools.build:gradle:4.0.0-alpha03'
None
layout.xml <androidx.constraintlayout.motion.widget.MotionLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" app:layoutDescription="@xml/fragment_first_scene" tools:context=".FirstFragment">
fragment_first_scene.xml <MotionScene xmlns:android="http://schemas.android.com/apk/res/android" xmlns:motion="http://schemas.android.com/apk/res-auto"> <Transition motion:constraintSetEnd="@+id/end" motion:constraintSetStart="@id/start" motion:duration="1000"> <KeyFrameSet> </KeyFrameSet>
</Transition> <ConstraintSet android:id="@+id/start"> </ConstraintSet> <ConstraintSet android:id="@+id/end"> </ConstraintSet> </MotionScene>
Motion Scene
None
start to end
None
Action Icons Create ConstraintSet Create Transition Create Handler
Create from Action Icons
Create Handler <Transition motion:constraintSetEnd="@+id/end" motion:constraintSetStart="@id/start" motion:duration="1000"> <OnClick motion:targetId="@+id/imageButton" /> </Transition>
None
KeyFrames KeyPosition KeyAttribute KeyTrigger KeyCycle KeyTimeCycle
KeyCycle <Transition motion:constraintSetEnd="@+id/end" motion:constraintSetStart="@id/start" motion:duration="1000"> <KeyFrameSet> <KeyCycle motion:motionTarget="@+id/imageButton" motion:framePosition="0" motion:wavePeriod="1"
android:scaleX="0.3" motion:waveOffset="1" />
Selection Panel
None
Attributes Select Transition Select KeyFrame
demo (if I can)
Wrap up Motion Editor Cool visualization for KeyFrames Not for
CoordinatorLayout, DrawerLayout etc Easy to add properties for animation as XML AS4.0 still canary, Motion Editor still beta
References What's New in Android Studio Design Tools (Android Dev
Summit '19) - YouTube : https:// www.youtube.com/watch?v=vqDwSK5t7Hk Defining motion paths in MotionLayout - Google Developers - Medium : https://medium.com/ google-developers/defining-motion-paths-in-motionlayout-6095b874d37 Manage motion and widget animation with MotionLayout : https://developer.android.com/ training/constraint-layout/motionlayout googlearchive/android-ConstraintLayoutExamples: Migrated: : https://github.com/googlearchive/ android-ConstraintLayoutExamples Animation with MotionLayout : https://codelabs.developers.google.com/codelabs/motion- layout/#0 DroidKaigi 2019 - Deep dive into MotionLayout / thagikura, John Hoford, Nicolas Roard - YouTube : https://www.youtube.com/watch?v=r8cYDlBOPaA Thank you!
More Decks by mochico
See All by mochico
Jetpack Glanceではじめる Material 3のColor
mochico
1
2.9k
Invitation for modern Android UI development - Basic of Jetpack Compose
mochico
1
460
Title : Let's Preview! Jetpack Compose
mochico
2
1.7k
Build app fast on Android Studio 4.+
mochico
0
2.3k
Google I/O 2019 WAIWAI Reporting Session Overview
mochico
0
98
Report of Firebase Summit 2018
mochico
1
2.7k
Kotlin Fest 2018 わいわい報告会 / mochicoroutines
mochico
0
330
start from Convert to Kotlin
mochico
2
9.9k
introduce Material Theming ~practice~
mochico
1
1.5k
Other Decks in Technology
See All in Technology
社内アプリ基盤「Quartz」による、 非エンジニアとAIに本番デプロイを 任せても壊れないプラットフォームの設計
staka121
PRO
1
440
AI-Ready なデータ基盤ってなに? & 新卒未経験が、いま考えていること
imuta
0
1.1k
ノードが消える前提で設計する!Karpenterで金融システムを止めないためのノウハウ大全
daitak
1
270
技術書典で本を売る流れ
yoshimura_datam
0
210
New Relicのアラート対応をClaude Codeで自動修正するワークフローを作った話
manabuseki
3
760
現地速報! Microsoft Ignite アップデートレポート
kasada
1
740
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
5.5k
不具合データを用いたプロダクトコードの弱点可視化
tarappo
6
350
AWS re:Invent 2026 FSI Pre-Event Networking Night
junjikoide
0
400
Kiro Crew の Conductor mode: 1 つのチャットに渡したゴールを、コンダクターがワーカーに分けて任せる
inariku
PRO
1
150
Metadata - Section 4 : MODS (Metadata Object Description Schema )
mohab1
0
210
AWS Well-Arhitected Frameworkセキュリティの柱 について
miu_crescent
PRO
2
270
Featured
See All Featured
Un-Boring Meetings
codingconduct
0
520
Building an army of robots
kneath
307
47k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.5k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.3k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
A Modern Web Designer's Workflow
chriscoyier
699
190k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
New Earth Scene 8
popppiees
5
2.9k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
3k
Become a Pro
speakerdeck
PRO
31
6.4k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
320
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.9k