Questions tagged [android-motionlayout]

MotionLayout is intended to move, resize, and animate UI elements with which users interact, such as buttons and title bars. Motion in your app should not be simply a gratuitous special effect in your application. It should be used to help users understand what your application is doing. For more information on designing your app with motion, see the Material Design section on

https://material.io/design/motion

Getting started with MotionLayout

Follow the steps described in the following link.

https://developer.android.com/training/constraint-layout/motion-layout#getting_started

430 questions
0
votes
1 answer

Can I get constraintSet from MotionLayout which use a layout's instead creating constraintSet into scene

I use MotionLayout for the animate view1. I want programmatically change constraint view1 to view2. I want to use different layout's in my scene instead of using ConstrainsSet So, I have: res/xml/activity_scene.xml
0
votes
1 answer

Android MotionLayout doesn't show animation

I am creating animation in splashScreen with motionLayout. But my animation doesn't work, instead it immediatly shows the ending positions of the elements on the screen. Here is my code: SplashActivity: class SplashActivity : AppCompatActivity()…
Kratos
  • 681
  • 1
  • 13
  • 30
0
votes
1 answer

MotionLayout and data binding

I've a button inside a MotionLayout:
Sharas
  • 1,985
  • 3
  • 20
  • 43
0
votes
1 answer

MotionLayout motionInterpolator with cubic function doesn't work as expected

I have a MotionLayout transition with motioninterpolator set with a cubic-bezier function:
Raphael C
  • 2,296
  • 1
  • 22
  • 22
0
votes
0 answers

YouTube navigate back from video fragment to home fragment

I want to achieve behavior similar to YouTube navigating behavior when you click on video item, video fragment will open and if you slide down go back to home fragment, I make the animations with MotionLayout but navigating back with animation I…
0
votes
0 answers

Multiple Transitions Not Working in MotionLayout

I'm trying to add multiple animations in my MotionLayout. The scene currently has two Transitions but will eventually have four. First transition is kind of a mix between YouTube Player and Netflix Player where controllers disappear either by…
0
votes
0 answers

MotionLayout altsrc image still invisible on another activity

I am using motionlayout to handle animations since it's seems like a good choice. One of the animation i should implement required to alter the src of the image and i couldnt animate that.(seems like we cant change src attribute of an image in…
eddym
  • 648
  • 7
  • 11
0
votes
1 answer

How can I define a transition making the content appear from outside the screen in MotionLayout?

I am using MotionLayout and I want to make the content appear sliding from the bottom of the screen. I want to use translationY but I cannot define %. I have to define dp. Is there a way to achieve it writing it in a ?
0
votes
1 answer

MotionLayout not resized when animating

I have this view:
Kevin ABRIOUX
  • 16,507
  • 12
  • 93
  • 99
0
votes
0 answers

Android MotionLayout transition in release variant

I am using motionLayout to animate some aspects of my app and everything works fine but it turns out that when I change from debug to release variant the transictions executed by motionLayout.transitionToEnd() code stop working. Do you have any idea…
Orelvis15
  • 306
  • 4
  • 11
0
votes
1 answer

MotionLayout KeyCycle and KeyTimeCycle

I have a Motion layout KeyCycle as -
Ma2340
  • 647
  • 2
  • 17
  • 34
0
votes
1 answer

Recycler Visibility Changes in MotionLayout

I have a Custom HeaderView and also a RecyclerView. The Visibility of the RecyclerView is handled Programmatically based on network load/refresh. Below is a sample of my layout.
Paul Okeke
  • 1,384
  • 1
  • 13
  • 19
0
votes
2 answers

How to dynamically change MotionLayout transition keyframe value for background color?

I have started playing around with MotionLayout and noticing that most of documentation shows how to do transitions in xml. I have an issue where I don't know the background color of the app bar until an image has loaded and I have figured out how…
Andrew Steinmetz
  • 1,010
  • 8
  • 16
0
votes
2 answers

Android motion scene for a image view

I am new to MotionLayout. I followed a simple example where the MotionLayout contains a single element say Button and this was quite easy to generate a MotionScene for it. However I have a MotionLayout which has several elements in it. The layout…
0
votes
1 answer

Back Transitions In Motion Layout

I am trying to do a simple animation where on swiping the textview the button becomes visible and when clicking the button the button becomes invisible. The problem is I am able to do it the first time but when I try to do it again I need to reverse…
ACE
  • 1
  • 1