Androbean Studio
Androbean Studio

Reputation: 382

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 effect. So I cannot simply disable APPEAR effect.

I couldn't yet figure out a way to achieve this. Any help is much appreciated.

Thanks, Androbean.

Upvotes: 6

Views: 826

Answers (1)

David Miguel
David Miguel

Reputation: 14420

I haven't found any better solution apart from wrapping the view I want to exclude in a FrameLayout (or ViewGroup you prefer) and add android:animateLayoutChanges="false" to it.

Upvotes: 1

Related Questions