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

Motion layout Material design Expanded Button bug

I have an app with an expanded button implemented. The button shrinks and expands perfectly fine in constraint layout or any other layout except in motion layout. In which the button does not get expanded after shrink and in the extended state when…
0
votes
2 answers

Expand and hide Layout Android

I need to program this animation https://i.stack.imgur.com/02FtY.gif into a constraint layout that had an edit text and a recycler view inside like the picture and I dont have any idea to achive this. can someone help me with some ideas ?
0
votes
1 answer

MotionLayout - one transition disabling another

I have two transitions in one MotionScene:
Vladimir Fisher
  • 3,090
  • 2
  • 17
  • 23
0
votes
1 answer

MotionLayout multi state transition is not smooth

I have three states A, B, C. With OnSwipe I go from A to B and then with another OnSwipe from B to C. The directions of the swipes are the same. So, continuous dragging from state A should eventually go to state C. The problem I face is transition…
0
votes
1 answer

Material container transform transition not working on back press

I read about the new motion transition added to material design library here https://material.io/develop/android/theming/motion. and wanted to implement the same for my app. My App is Ecommerce app to sell products. So I wanted to implement…
0
votes
1 answer

handler.postdelayed not work in the MotionLayout

Ever since convert ConstraintLayout to MotionLayout handler.postdelayed not work These are my codes Layout
alkkhu
  • 53
  • 5
0
votes
1 answer

How to animate a line inside a View

I'm struggling trying to figure it out why is not animating from the top of the View1 to the bottom of the View1. When animating it start to animate from the bottom and I don't know why. This is my layout. ....
StuartDTO
  • 783
  • 7
  • 26
  • 72
0
votes
2 answers

Can't find "Convert to MotionLayout" in android studio

I have tried adding different implementations for constraintlayout implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha4' implementation 'androidx.constraintlayout:constraintlayout:2.0.2' Cleaning the project, still right clicking…
0
votes
1 answer

Is it possible to make a two slider MotionLayout in Android?

Problem: I'm trying to make a sliding view similar to the first example on this examples page but instead of one slider I want two or more sliders. Is that possible to do in one scene with ConstraintsLayout 2.0.2 or do I need to make multiple scenes…
Jkkarr
  • 382
  • 4
  • 18
0
votes
2 answers

MotionLayout: How to animate content inside?

Let's imagine we have a tinder - cards that we can swipe away. Let when we drag the card to the left, it rises and decreases in size (for example, scale = 0.7) When the card is reduced in size, the picture is cropped. Is it possible to make it…
user13201453
0
votes
1 answer

How to make PlayerView full screen in landscape mode when used in MotionLayout

I want to make it possible to make the PlayerView in landscape mode full screen but I can't make it work. So far, I have tried to set the playerView layout params programmatically when configuration changes to landscape mode, but it still isn't…
0
votes
1 answer

Constratint layout 2.0.1 constraintDimensionRatio Buggy

I previously used a constraint layout 2.0.0-beta08 that showed a smaller image with layout_constraintDimensionRatio="16:7" With the new Constraint layout version 2.0.1, the image now looks bigger and unable to resize it as per dimension ratio. I…
0
votes
1 answer

Android MotionLayout + Recyclerview, views in recyclerview not clickable

I'm playing a RecyclerView with MotionLayout, and the structure in .xml is like A behavior of…
0
votes
2 answers

How to define a common interpolator for all transitions of a MotionScene?

I have three states in a given layout, and I'd like to have the same interpolator used for any transition between these states. How can I define (either in XML or code) the same interpolator for all transitions without having to repeat myself as…
Gabriel Feo
  • 73
  • 1
  • 6
0
votes
2 answers

Motion Layout Animation Not Play

I have a motion layout and I want to when animation ended, Start another activity. So I have two problems: I create this Description file for motion layout:
Marlen Schreiner
  • 726
  • 10
  • 25