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

Multiple Motion layout animating dynamically

I have Two motion layouts in an XML. One is a parent, one is its child. While animating the start animation from XML , it works . But when the same motion layout is dynamically started with code the view does not get display but the animation in the…
Ravi Parmar
  • 968
  • 11
  • 28
0
votes
1 answer

By using touchAnchorId in motion layout Buttons are not working

I used touchAnchorId so that the motion Layout applies only when i swipe through a single region because without it while scrolling on recyclerview it automatically drags Up.
Mohit Kumar
  • 552
  • 9
  • 29
0
votes
1 answer

How to Use MotionLayout in Fragment?

I want to use motionLayout for detail page of my app. It's important for me because It's my internship project and if I can manage to develop good app , I can get a job. Problem is that , I've tried this on new project just to see if it's working…
0
votes
1 answer

Is there any alternative for MotionLayout to create collapsible header with ConstraintLayout?

I created a layout using constraint layout where the body view (viewpager for fragments) depend on header (e.g., viewpager has property layout_constraintTop_toBottomOf="@+id/button1" where button1 is view at the very bottom of header). Now I need to…
0
votes
1 answer

MotionLayout i can't scroll my RecyclerView to first poisiton

I have a activity_motion_sec.xml file as below. It is almost same with this sample https://riggaroo.dev/android-motionlayout-tutorial-collapsing-view/. What i have added is a simple up arrow button. I want my recyclerview to scroll to 0. position…
0
votes
1 answer

Collapsing toolbar not expanding when scroll animation reaches the top

I have a recycler view below my appbar, and it expands when I'm at the top of my RV and I scroll up one more time. I need my collapsed toolbar to expand when the smooth scrolling animation reaches the top, so I don't need to scroll up again. Instead…
0
votes
1 answer

Is there a problem is using a RecyclerView as a child of MotionLayout?

So, am trying to create a motionscene that's composed of a fragment container and two other views to play with using swipe gestures. The problem is whenever the fragment container contains a recycler view, with the presence of the OnSwipe…
0
votes
2 answers

How to use MotionLayout like TransitionManager?

Tutoiral I see with MotionLayout have things in common and that is it focused on either an onClick or onSwipe to trigger MotionLayout Transition. I was wondering how to Transition from something like State A to State B with other trigger like…
Archie G. Quiñones
  • 11,638
  • 18
  • 65
  • 107
0
votes
1 answer

Resize in textview when I scroll in customized MotionLayout

I have following project in Github : https://github.com/AliRezaeiii/TMDb-Paging Here is my person_header layout file :
Ali
  • 9,800
  • 19
  • 72
  • 152
0
votes
1 answer

MotionLayout Swipe left and right animation problem

I am creating a motion layout in which user can swipe left or right, when i added layoutDescription layout-width is not working anymore. I want to be able to resize android:layout_width of layout on swipe. Here is my XML for MotionScene and…
0
votes
1 answer

can't sync project after adding constraintLayout

after adding implementation'androidx.constraintlayout:constraintlayout:2.0.0-beta4' android studio can't sync and I get this error: ERROR: Failed to resolve: core bellow is all of my dependences: dependencies { implementation fileTree(dir:…
0
votes
1 answer

Motion Layout - The text size does not change when using two layout files for Transition constraintSetEnd and constraintSetStart

I have two layout files which I am using to do the start and end transition using a motion layout. The text moves as expected, based on start layout file to end layout file. But the text size does not change, even though different text sizes have…
Sunny
  • 7,444
  • 22
  • 63
  • 104
0
votes
0 answers

MotionLayout will not animate with MotionScene

I'm trying to create a custom collapsing toolbar with Motion Layout. When the user scrolls the Logo should animate into a smaller size into the toolbar. Following the implementation here I set up my layout and my MotionScene. For some odd reason, I…
0
votes
2 answers

motionlayout - view gets hide when the transition completed

I'm moving a view from top to bottom of my activity , the problem is ,it works fine and move my view from bottom to up but when the transition completed , it hides the view this is my layout : …