Animating a ViewGroup without animating child views?

I solved my problem by using a ValueAnimator and animating the LayoutParams of my ViewGroup :).

I have been having a lot of trouble lately trying to get my custom ViewGroup to animate (scale/translate animation) independently it's child views. Worth noting is that my custom ViewGroup is visible and not just a container, thus the need to animate it and not only it's children. I want my ViewGroup to have 2 states, unexpanded and expanded with the former being able to display 1 view and the later being able to display that view in addition to 4 more (total 5).

The animation my ViewGroup uses to enter/exit the expanded state is done and I am very happy with it. Though when adding a View into the ViewGroup it to will expand with the same animation as my ViewGroup which I definitely do not want. Ok, that was a lot of explaining (hope you understood half of it) but now comes what I want to achieve.

I want to control my ViewGroup with one animator and all the child Views with another independent animator. I have a feeling I am going at this the wrong way so if anyone has something easier/better to suggest than please do.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions