Questions tagged [layout-animation]

66 questions
45
votes
5 answers

How to create the delay of 1 sec before set the alpha of View?

In My Application i am going to set the alpha after one animation. As like: hideMenu = AnimationUtils.loadAnimation( getApplication(), R.anim.menu_layout_hide); menuLayout.startAnimation(hideMenu); menuLayout.setVisibility(View.GONE); But i want…
Shreyash Mahajan
  • 23,386
  • 35
  • 116
  • 188
23
votes
1 answer

change animateLayoutChanges property using java code

I'm working on a android application which is use layout change animations. what i want to know is, is there any one know how to change the "andorid:animateLayoutChanges" proberty using java code. my current value…
Dehan Wjiesekara
  • 3,152
  • 3
  • 32
  • 46
18
votes
3 answers

View animation right to left android

I am not able to put view animation for inflated layouts. I used the following code snippet pageView.startAnimation(AnimationUtils.loadAnimation(this,R.anim.right_to_left_anim.xml)); and xml
codewithdk
  • 1,290
  • 1
  • 10
  • 23
14
votes
3 answers

How to apply android layout animation only to children above a certain index?

I have a ListView containing a series of notes. Currently I use a layout animation to slide all the notes in from the side when the list first loads; this works perfectly. However, I'm trying to figure out how to apply a layout animation only to…
CodeFusionMobile
  • 14,812
  • 25
  • 102
  • 140
10
votes
3 answers

How do I use a GridLayoutAnimation in a RecyclerView?

I'm trying to replace my GridView with the new RecyclerView (using GridLayoutManager) but it seems like it doesn't cope well with gridLayoutAnimation (ClassCastException: LayoutAnimationController$AnimationParameters cannot be cast to…
Musenkishi
  • 128
  • 1
  • 6
9
votes
1 answer

React Native - LayoutAnimation: how to make it just animate object inside component, not whole component/view?

I'm trying to follow this example (code here) and employ LayoutAnimation inside my RN project (the difference from that example being that I just want to render my circles with no button that'll be pressed). But when I've added LayoutAnimation, it's…
SpicyClubSauce
  • 4,076
  • 13
  • 37
  • 62
8
votes
3 answers

React Native: How to selectively enable LayoutAnimation

I'd like to enable layout animation for some components but it once it is activated, all components being rendered are affected by layout animation. For example, I have I only wish to use layout…
Vu Dang
  • 721
  • 1
  • 7
  • 11
7
votes
1 answer

How to scale View / ViewGroup - animate layout in a proper way?

In a few words, I want to scale view - in the same way that Android Market does it, when you click the "More" button, on the for examplae 'Description'. I figure it out, that the Android Market has the layout of following structure : …
Kocus
  • 1,613
  • 17
  • 31
7
votes
1 answer

Android Listview not updating

I have a ListView with a custom adapter, displaying information from a database. When I start the app, the data is read from the database, given to the adapter, which is then attached to the ListView. A LayoutAnimationController is run on the…
El Duderino
  • 855
  • 1
  • 10
  • 21
6
votes
2 answers

Does LayoutAnimation Work Under Any Circumstances?

LayoutAnimation is a part of React Native that automatically animates components when the view is rendered. The official documentation is here: https://reactnative.dev/docs/layoutanimation However, the examples in the docs do not work. Objects in…
Code Whisperer
  • 22,959
  • 20
  • 67
  • 85
5
votes
3 answers

How to move a view to another view using animation in Android?

I have a circle at the center of the screen inside which there's an ImageView + TextView. I have another two ImageView+TextView, one at the top and another at bottom of the screen. My requirement is : I want a copy of the top ImageView+TextView…
Rakesh
  • 1,205
  • 1
  • 14
  • 33
5
votes
0 answers

Where can I get gridviewitem flip effect animation similar to appygeek?

I was searching for a kind of layout animation for my gridview. The animation will look like similar to windows 7 tile animation. The animation is used in appy geek application available in market - Google play link If you could identify the name of…
arnp
  • 3,178
  • 6
  • 26
  • 43
4
votes
0 answers

React native LayoutAnimation disable

I have these code: LayoutAnimation.configureNext(LayoutAnimation.Presets.spring); this.setState({dragonTypes: res.body.dragonTypes}); and my problem is: when the res.body.dragonTypes is empty, these is nothing happen, it's right but when i do some…
liu pluto
  • 314
  • 2
  • 11
4
votes
3 answers

Can LayoutAnimationController animate only specified Views

Is it possible to override Android's LayoutAnimationController in such a way that only certain child Views that I specify inside a ViewGroup will animate? My goal is to choose an arbitrary set of the child views based on the current state of the…
happydude
  • 3,869
  • 2
  • 23
  • 41
3
votes
0 answers

React Native View onLayout re-renders every frame while children height animates

To create a custom View with translateY I have to calculate the height of the container and content using onLayout. This worked perfectly, but today I've added an Accordion component which also animates. This happens to trigger the onLayout…
ronnyrr
  • 1,481
  • 3
  • 26
  • 45
1
2 3 4 5