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!