From the course: Android Studio Essential Training 2020
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Animate views in the Motion Editor
From the course: Android Studio Essential Training 2020
Animate views in the Motion Editor
- When you're working with an XML layout file, with a root element of motion layout, Android Studio 4.0 , let you edit the motion layout, and add animations using the motion editor. Now, before I start making changes to create the animation, I want to affect the base state of the motion. I'll click on motion layout, and then I'll start making some layout changes. I'll click on this text view, and then a right click on my right constraint, and I'll delete it, and I'll do the same thing for the bottom restraint. And now my text view component, floats to the top left corner. I want to add some padding, to push that component down a bit. So I'll go into code view, and I'll add a padding attribute here, and I'll set it to 64 DP. And I'll run the application in a virtual device, so I can see what the application looks like, when it first comes to the screen. And I see my Hello World label, in the top left corner with…
Contents
-
-
-
-
-
-
-
-
(Locked)
Create new Kotlin and Java code files3m
-
(Locked)
Edit code files in the editor window3m 15s
-
(Locked)
Useful code editing shortcuts4m 49s
-
(Locked)
Refactor and inspect code3m 6s
-
(Locked)
Create and use live templates3m 32s
-
Edit layouts with design and text mode3m 36s
-
(Locked)
Add MotionLayout to an XML layout file2m 2s
-
(Locked)
Animate views in the Motion Editor4m 56s
-
(Locked)
Challenge: Extract code to a new class1m 8s
-
(Locked)
Solution: Extract code to a new class2m 12s
-
(Locked)
-
-
-
-