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
0 answers

MotionLayout animation not working properly inside RecyclerView item

I use this library StackExpandable to add an Expand/Collapse cardViews as a recyclerview item. Expand/Collapse works fine. But the issue I am facing is that when I expand two items and while scrolling, any item goes out of the screen and comes back,…
Jayesh Babu
  • 1,389
  • 2
  • 20
  • 34
0
votes
1 answer

How to populate Constraintlayout as view in carousel apdapter in motionlayout android?

I'm trying to use carousel widget in motionlayout for making OnBoardActivity. I'm create three layout contain first, second and third layour. Then I create on_board_activity layout. This is my code: …
0
votes
1 answer

Motion layout with individual moveWhenScrollAtTop flag for views

I want to create a screen with a motion layout, here is the layout scheme: Header visible if a user is on top of the RecyclerView, otherwise it's gone; Filters visible if the user swipes up, gone if swipes down. There are problems, that I don't…
0
votes
1 answer

Wrong MotionLayout state in RecyclerView

I have RecyclerView with 40 items. Item is a CardView with MotionLayout inside:
0
votes
1 answer

Why are two Motionlayout started simultaneously but executed serially

I created two basically consistent animations based on MotionLayout, one sliding up and the other sliding down. I started the two animations at the same time, but occasionally they are out of sync, it is more like the animation is executed serially.…
xyoye
  • 3
  • 1
0
votes
1 answer
0
votes
1 answer

RecyclerView scrolling issue in android MotionLayout

We have been working on an android project, and we faced with a problem in animation into the motionLayout when recyclerView is scrolling (you can see in video). after scroll in anywhere on screen animation is fine but after scroll recyclerview…
0
votes
1 answer

MotionLayout - Single continuous transition on swipe?

I have four different layouts which can be swiped one after another by swiping left. When a single transition completes, I would like to be able to continue on to another transition upon further swiping left. All layouts have their own transitions…
0
votes
1 answer

Use Elements of Linear Layout in Motion Layout

I want to use linearlayout in motionlayout but I have problem. When I want give animation to elements of linearlayout , I can't give any animations to elemnts that they are in linearlayout and i can just give animation to linearlayout. This is main…
0
votes
2 answers

Parent height is 0 while child view height > 0

I have a layout with a FrameLayout, in FrameLayout, there is 2 RelativeLayout. I include this layout to activity_main.xml by include tag. activity_main.xml is a MotionLayout and this "include layout" is a child of MotionLayout. I have define a…
Linh
  • 57,942
  • 23
  • 262
  • 279
0
votes
1 answer

How to adjust the direction of appearance of GONE views for the MotionLayout?

See source https://github.com/suchoX/DraggableView Version androidx.constraintlayout:constraintlayout:2.0.0-rc1 Views with attr gone(for ex. button next_image_view ) are going from the bottom. It is correct. See screen shot But if update to Version…
0
votes
0 answers

button does not appear when i open the keyboard

i added android:windowSoftInputMode="adjustPan|adjustResize" and the button is in ScrollView but I had used MotionLayout,is it because of that?
0
votes
1 answer

How to start animation of MotionLayout when something is happened?

I have got MotionLayout with motions of each view in it. All motions are working fine. I want to start motioning when onBackPressed() method is called or some button is clicked just like YouTube. Is it possible to do that?
user15433749
0
votes
1 answer

Change Dimension of nested layout in MotionLayout

I do have a nested layout in a MotionLayout by using an .
Sayok Majumder
  • 1,012
  • 13
  • 28
0
votes
1 answer

How to set motion layout transition to one activity to another

I'm traying to set motion layout transition one activity to another but I don't know how to do.