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

How can I move to the next screen after the splash screen is done in Android Studio?

I made a splash screen with motion layout. These are the codes. the splash screen xml file the .kt file that has the splash screen ( 1/2 ) the .kt file that has the splash screen ( 2/2 ) I am trying to move from MainActivity.kt(which is where the…
0
votes
0 answers

Android - Motion Layout overstretch effect

i want to implement stretch functionality on swipe in constraint layout 2.1. i have motionlayout that i want to expand on swipe down of view. if i use new Spring properties i'm getting nice overshoot effect only if i let transition auto complete but…
AVT
  • 23
  • 1
  • 4
0
votes
1 answer

How to set the state end in Java code MotionLayout

I use MotionLayout I want to manage the @+id/end of the ConstraintSet in Java for example
alkkhu
  • 53
  • 5
0
votes
0 answers

ViewPager inside MotionLayout not showing items

I implemented a viewPager inside my MotionLayout view, and created the Adapter and set the adapter. Here is the MotionLayout view:
Khalid Taha
  • 3,183
  • 5
  • 27
  • 43
0
votes
1 answer

Kotlin MotionLayout doesnt expand as expected

I have a little problem with Motionlayout. I want to expand img from 0 to for example 350 dp width and 250 dp height on the top of the screen but in the middle horizontal. Now my image is expanding but is doing this from left down side not middle. I…
wenus
  • 1,345
  • 6
  • 24
  • 51
0
votes
1 answer

How to setAdapter for carousel in motionlayout

I am developing an app for that i used carousel with motion layout for image slider but i couldn't populate the carousel. And I am unable to set the adapter for the carousel how to populate the it with images or data. Once this basic motion scene is…
0
votes
0 answers

MotionLayout Causing RecyclerView Items to be Cutoff

Basically, I have a MotionLayout with a RecyclerView and an ImageView inside. I want the ImageView to act as a header for the RecyclerView and move out of the view when scrolling down the recycler view. Currently, I have the motion layout making the…
Don Robin
  • 121
  • 2
  • 16
0
votes
1 answer

How can I get AnimateLayoutChanges on a MotionLayout working?

I want to have my view positions auto-animate using animateLayoutChanges with the LayoutTransition.CHANGING flag on my MotionLayout. Unfortunately I can't get it to work, the views just jump around. I've tried changing the MotionLayout to a…
Michael P
  • 225
  • 3
  • 11
0
votes
1 answer

Is there a way to set MotionLayout custom attribute for MaterialButton's iconTint?

According to this article CustomAttribute are specified with the attributeName, which needs to match the getter/setter methods of an object such that: getter: getName (e.g. getBackgroundColor) setter: setName (e.g. setBackgroundColor) (so…
0
votes
1 answer

Changing custom attribute in a MotionLayout

I'm starting to experiment with the MotionLayout and in my scenario, I actually have a CircularProgressIndicator that I want to redimension. Motion Scene 1: Motion Scene 2: Now, the way CircularProgressIndicator works is that it has 2 attributes…
Peddro
  • 1,105
  • 2
  • 9
  • 19
0
votes
1 answer

Motion Editor Preview not Loading

I am working on app using MotionLayout feature but the MotionLayout Editor is acting up and is not showing the preview when I click the Design tab. I am getting is a blank preview with a Rendering error which I have been trying to solve to no…
Tonnie
  • 4,865
  • 3
  • 34
  • 50
0
votes
1 answer

Can I have dynamic "touchRegionId" in MotionLayout?

For now, I use a view from the first screen as touchRegionId. The problem is that the view is only at the first screen and when "start->end" animation is done, I'm unable to make "end->start" animation, because I don't have that view from…
Viktor
  • 566
  • 5
  • 17
0
votes
1 answer

Motion layout with RecyclerView, scroll at the end of recyclerview

Any ideas how to implement scrollToPosition with MotionLayout? Currently I have a RecyclerView and some header that hides on scroll and shows if you scroll to top. This is the scene:
0
votes
0 answers

MotionLayout animation from List to detail

I'm wondering which method from MotionLayout may help me to re-create this animation the one you see a list of items. The animation is the same as the image, you tap on an item of the list and the images "makes bigger" until it fits to the detail…
StuartDTO
  • 783
  • 7
  • 26
  • 72