Questions tagged [layout-animation]
66 questions
0
votes
1 answer
react native layoutanimation config easeInout not working (IOS)
i have a room list, when any room have new message, I sorted this room to top then re-render the flatList with LayoutAnimation(testing from IOS simulator):
const CONFIG = {
duration: 300,
create: {
type: LayoutAnimation.Types.linear,
…

famfamfam
- 396
- 3
- 8
- 31
0
votes
0 answers
How to add a color fill for a linear layout onclick?
I am trying to change the color of the buttons and give a gray color fill sliding in from the left towards the right end of the button when clicked before the next acitivity slides in. The buttons are Linear Layouts.
Here is the XML code for the…

Mohammed Jinas
- 11
- 5
0
votes
1 answer
How to use LayoutAnimation on Android using react native
LayoutAnimation not working on android
I didn't find any issues like this, and these errors are not found in google)
"react-native": "0.67.4"
I try to use LayoutAnimation, my code looks like this:
constructor(props) {
super(props)
…

dinakh
- 1
- 1
0
votes
1 answer
React Native LayoutAnimation scale doesn't work on android
I am using react-native's LayoutAnimation custom component with maps. On ios animation works properly, but not on android. I'm changing component height
const HeightAnimation = {
duration: 200,
create: {
type: LayoutAnimation.Types.linear,
…

Mykyta
- 51
- 1
- 7
0
votes
1 answer
How can I collapse Item pressed on arrays - react native?
I have a list of cards,
when pressed to any of them, I want to Increase hight for that card,
So I use layoutAnimation to handle this case because when I use Animated API from RN, I got an error when setNativeDrive "height"
Anyway,
In my case, it…

Oliver D
- 2,579
- 6
- 37
- 80
0
votes
1 answer
How does recyclerView.scheduleLayoutAnimation() work?
Could someone explain me how recyclerView.scheduleLayoutAnimation() method works, and how to use it?

kerutf
- 41
- 1
- 6
0
votes
0 answers
android recyclerview layoutanimation not working in stock android
android:layoutAnimation not working in stock android phones

Abraham Mathew
- 2,029
- 3
- 21
- 42
0
votes
0 answers
Dont know when to call recycler view animations to make them work
I am new to android studio and am trying to make a recyclerView fall down animation but I currently do not have a clear idea of when to set the layoutAnimation. I am using the firebase recycler adapter. Following is my on OnViewCreated function…

A.Hamza
- 219
- 1
- 4
- 13
0
votes
1 answer
Animate field width in React Native
I have 2 Text Inputs each with flex: 1. When I focus one of them, I am making it bigger-> flex: 1 -> flex: 2.
Can anyone give me an example of how to add an animation to this width change?
…

johnnyshrewd
- 1,038
- 2
- 12
- 29
0
votes
2 answers
Text view contents not appearing on the phone screen in android using Kotlin
I am unable to display the textviews and their contents on screen. The app does not crash but the debugger console displays this error. It shows that the causes are the following.
Caused by: android.view.InflateException: Binary XML file line #11:…

Eswar
- 1,201
- 19
- 45
0
votes
0 answers
React Native LayoutAnimation scrollView container size
I have some components wrapped in a ScrollView and for some condition the bottom most component shouldn't render. When that happens, I use LayoutAnimation to hide it. The problem is that when the component disappear, the ScrollView jumps to the new…

Jaros
- 41
- 1
- 2
0
votes
1 answer
What are the available options for LayoutAnimation.Types
I have a custom layout animation taken from here.
var CustomLayoutAnimation = {
duration: 200,
create: {
type: LayoutAnimation.Types.linear,
property: LayoutAnimation.Properties.opacity,
},
update: {
type:…

Chris
- 4,662
- 2
- 19
- 27
0
votes
1 answer
How do you animate rows swapping with ListView? (React Native)
I'm trying to animate the swapping of two rows with a React Native ListView
Here's my datasource code (both in my render method):
const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1.id !== r2.id})
var dataSource =…

Mark Estefanos
- 493
- 1
- 4
- 12
0
votes
2 answers
Drawer item animation when opened
I've created a drawer using a DrawerLayout which contains a RecyclerView with the items. I've also attached a layoutAnimation to the RecyclerView to have the items come in from the side when opening the drawer. This works peachy the first time but…

patrick.elmquist
- 2,113
- 2
- 21
- 35
0
votes
1 answer
React-Native Unsupported Layout Animation
Trying to render my scene, which contains a SlideMenu in which each items change my Content View, I get that error :
[RCTLog][tid:0x7f8f7054b4b0]
[RCTUIManager.m:466]>Unsupported layout animation createConfig property (null)
I suppose it comes from…

ilansas
- 5,899
- 6
- 21
- 27