Questions tagged [layouttransition]
26 questions
20
votes
2 answers
RecyclerView: Animate item resize
I have a RecyclerView. Each of its items of the recycler view can be either expanded or not. There can be only one item expanded at the same time.
In essence, I'm trying to re-create the history list in lolipop dialier.
I have found that using a…

Salomon BRYS
- 9,247
- 5
- 29
- 44
11
votes
2 answers
Exclude certain elements from being animated in android layout transitions
I have a question regarding the android layout transition framework. In particular i want to achieve an effect that a certain part of an layout slides down or up depending on the visibility of another view(s).
Imagine the following layout. (And…

Felix
- 111
- 1
- 5
6
votes
1 answer
Android LayoutTransition - how to exclude a view
I am using LayoutTransition to do automatic rearrangement animations in one of my layouts.
I have a requirement to exclude a given child view in this layout from being animated (APPEAR animation). I still want any other views to do the APPEAR…

Androbean Studio
- 382
- 2
- 11
6
votes
1 answer
LayoutTransition disappearing and changing not happening at same time
I have this custom "bottom action bar" here: https://youtu.be/TPi5jtcs2wE, that appears and disappears with certain types of webpages (e.g. article/not article). I set up the outermost LinearLayout with animateLayoutTransition and made a different…

Daniel Handojo
- 612
- 5
- 19
5
votes
1 answer
LayoutTransition for LinearLayout with wrap_content
I'm trying to animate the add/remove actions of the views of an LinearLayout that has it's height set as wrap_content.
Currently I've tried setting android:animateLayoutChanges="true" for the LinearLayout and programmatically enabling the…

Ionut Negru
- 6,186
- 4
- 48
- 78
4
votes
1 answer
Can I change the behavior of Android's LayoutTransition to eliminate the fade but keep the height animation?
It's easy to add layout transitions with this attribute:
android:animateLayoutChanges="true"
However, the animation you get does not create a pleasing user experience. When elements are added to the layout (I'm using a simple vertical…

API Why
- 41
- 2
3
votes
1 answer
Using 'changing' LayoutTransition type in a ListVIew has no effect
In Android, I am currently attempting to create a list whose items change height when clicked, with all views below that item animating up or down depending on the height change. I have had success using the following code with a 'list' of items…

sa.shadow
- 2,378
- 3
- 16
- 10
2
votes
4 answers
LayoutTransition height to 0 causes view to dissappear instantly without animating
Given a view that is always aligned parent bottom, initially with a height of 0, I want to animate it so it slide up to it's height of WRAP_CONTENT. I'm using layout transition to achieve…

ono
- 2,984
- 9
- 43
- 85
2
votes
1 answer
LayoutTransitions not working for visibility changes
I'm trying to use LayoutTransition animations but they aren't working.
I set
android:animateLayoutChanges="true
in the parent LinearLayout in my Activity's layout. I then do a setVisibility(View.VISIBLE) or setVisibility(View.GONE) on a child…

Flyview
- 1,899
- 1
- 28
- 46
2
votes
0 answers
LayoutTransition with ScrollView
If I do LayoutTransition inside my ScrollView (animation is done on a LinearLayout), it expands very nice. However if I delete something everything gets pushed up while the animation is busy, which looks ugly. It is somewhat the same as this…

Kevin van Mierlo
- 9,554
- 5
- 44
- 76
2
votes
1 answer
overridePendingTransition & addView with LayoutTransitions
I am in a situation where I want to have no visible animation during a transition between Activities. I am currently doing the following:
startActivity( intent );
getActivity().overridePendingTransition( 0, 0 );
Works fine. Once in the second…

Allison
- 501
- 4
- 15
1
vote
1 answer
How to achieve the layering effect of one Composable on top of another when showing a dialog using Jetpack Compose
I'm hoping to understand how I can achieve this behavior using Jetpack Compose in Android when displaying a dialog on top of the current Composable view.
Desired State:
Animation when clicking on the Filter button at the bottom. This is from the…

Babloo K
- 253
- 2
- 5
1
vote
1 answer
framer-motion layoutTransition does work in React, but not in NextJS
I am trying to wrap my head around framer-motion, a really nice animation library which I am trying to use in combination with NextJS.
I followed a CSS tricks youtube video, which explained layoutTransition using this…

Ignism
- 41
- 4
1
vote
1 answer
ObjectAnimator ignoring duration in LayoutTransition
My layout transition is ignoring the duration I set in setDuration(). No matter what value I set it to, it appears to be using the default. Here I've tried 50s, and it disappears after a few milliseconds.
Animator disappearingAnim = ObjectAnimator
…

AutonomousApps
- 4,229
- 4
- 32
- 42
1
vote
1 answer
LayoutTransition DISAPPEARING Animation not working for Cursor Adapter
So, the title pretty much says it all. I have a listview which is populated with a custom cursor adapter which displays data from a database. I have an animation for adding items to the list which works fine but am having trouble getting the…

Rich Luick
- 2,354
- 22
- 35