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

Animate views in the Motion Editor

From the course: Android Studio Essential Training 2020

Start my 1-month free trial

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