442 questions
0
votes
1
answer
55
views
motion:duration not controlling animation speed
Visual Studio designing for Android, I have a motion_item_scene.xml where I am trying to control the animation speed:
<?xml version="1.0" encoding="utf-8"?>
<MotionScene ...
0
votes
0
answers
29
views
Scroll MotionLayout on vertical scroll of inner ComposeView
I have next structure of xml file:
<androidx.constraintlayout.motion.widget.MotionLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas....
1
vote
0
answers
30
views
My MotionLayout render didn't update everytime I change something
I was learning how to use MotionLayout, but I got a problem that every time I change something like value or adding attributes, the layout preview was stuck and didn't update anything, I need to close ...
0
votes
1
answer
51
views
Why does my app crash with Resources$NotFoundException in MotionLayout when using strict shrinker, and how can I fix it?
I recently enabled strict shrinker in my Android project to aggressively remove unused resources as described in the official documentation here https://developer.android.com/build/shrink-code#strict-...
0
votes
2
answers
76
views
Android MotionLayout: How to handle views with initial GONE visibility in animation
I'm facing an issue with MotionLayout animations when my views are initially GONE and become VISIBLE after data loading.
Current setup:
All views are initially GONE in the XML layout
After API ...
2
votes
0
answers
37
views
How to expand layout in motion layout in 2 steps?
Now the animation works perfectly.
But it’s a bit unsuitable for me, since when I scroll a vertical nestedscrollview, the toolbar_image immediately expands.
How can we make it so that when we scroll ...
1
vote
0
answers
61
views
MotionLayout not adjusting height dynamically during collapse/expand Animation jetpack compose
i am trying to create a list item in jetpack compose.
here is what i have done so far:
@OptIn(ExperimentalMotionApi::class)
@Preview(showBackground = true)
@Composable
fun Item2MotionLayout(progress: ...
1
vote
1
answer
247
views
Problem between SharedTransitionLayout and MotionLayout in Jetpack Compose
Currently my application uses SharedTransitionLayout to make an animation from the title of the SplashScreen and the toolbar of my application that also includes this title.
This works perfectly, ...
0
votes
1
answer
114
views
App crashes when trying to animate fontSize in MotionScene for Compose
I'm using version 1.0.1 of Motion Layout for Jetpack Compose alongside with compose bom 2024.02.01, material3 and a JSON5 motion scene, and when i try to do a simple use case such animating Text() ...
0
votes
1
answer
37
views
Why does CutomView change its size in MotionLayout when width is fixed?
I use MotionLayout to animate the selected gift card. The card itself is a CustomView with a TickerView and two TextViews inside.
<?xml version="1.0" encoding="utf-8"?>
<...
1
vote
0
answers
101
views
How to set custom Interpolator programatically in MotionLayout
I have created some animations with MotionLyout using the Android Studio design tool, so everything is under the layout xml and the scene xml files. In one transition I used the motion:...
1
vote
0
answers
105
views
Dynamic Height in MotionLayout Using JSON5
I'm using MotionLayout, and the heights of my components are defined in JSON5. Now, I have a requirement to change the height based on the screen size of different devices. So, I wrote a function to ...
0
votes
1
answer
89
views
Issue with TextView visibility when setting multi-line text in Android MotionLayout layout
I'm encountering an issue with a simple Android layout containing a Button and a TextView. Initially, the TextView is hidden, and upon clicking the button, I set its visibility to VISIBLE and populate ...
0
votes
1
answer
446
views
Interoperability with Compose and motion layout doesn't scroll?
I have a the following layout in a fragment
Header Image
====================================
Tab 1. Tab2. Tab3.
====================================
Frag A. Frag B. ...
0
votes
1
answer
99
views
Motion Layout: Handling click on swipeable view
I am trying to set a touch listener to a cardView (which is also swipeable because of the motion layout) the problem is that if i return true in the OnTouchListener when the event.action == ...