Hello everyone, I will be very grateful if you can help.

There is a ViewGroup with a TextView .
At each moment we see one TextView , we can scroll left or right to see others, for this I use RealViewSwitcher .

I want to make an infinite twister; for this, when the last element is reached, I take the first one, delete it and add it to the end.

  //Получаем первый элемент TextView textView2 = (TextView)this.getChildAt(0); //Добавляем в конец this.addView(textView4); //Прокурчиваем snapToScreen(mCurrentScreen + 1); //Удаляем первый this.removeView(this.getChildAt(0)); 

Everything works, but due to removeView the animation does not work. The screen just changes dramatically. In android newbie. Help me please!

    1 answer 1

    So it will not work.

    I will assume.

    You put the animation on the view and delete it later. Try to make an animation for the entire container or in the form of a dialozhka over control.

    Also, I advise you to use the ViewPager for paging between views smoothly and quickly instead of similar samopisnoy husk.

    • I will understand, thank you so much for your time and advice. - Costa