[android-developers] Re: ViewFlipper animation and Gallery on the same activity

2011-08-25 Thread Tomas Prochazka
I found that it maybe doesn't cause animation but
child.setVisibility(View.GONE) in ViewAnimator class. I tried to call
setVisibility(View.GONE) on some my object during Gallery swype and it
also cause stop animation of swiping.

On Aug 24, 8:39 pm, Tomas Prochazka tomas.procha...@gmail.com wrote:
 Hi. I have ViewFlipper and the Gallery on the same activity.
 ViewFlipper periodically switch two view with simple fade animation.
 Problem is when I scrolling in Gallery at every switch start, Gallery
 stop animation and jump to nearest item. Is almost impossible to
 scroll if switch period is too short. I think that ViewFlipper start
 Animation which call invalidate() and this cause refresh Gallery, but
 why? Gallery is on the opposite side of screen, completely no reason
 to refresh gallery on every animation start,

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ViewFlipper animation and Gallery on the same activity

2011-08-25 Thread Tomas Prochazka
It is caused by child.setVisibility(View.GONE); in ViewAnimator class
it cause remeasure and redraw of whole activity screen :-(
I used source code put in on own package and modify it to
child.setVisibility(View.INVISIBLE);

On Aug 25, 10:33 am, Tomas Prochazka tomas.procha...@gmail.com
wrote:
 I found that it maybe doesn't cause animation but
 child.setVisibility(View.GONE) in ViewAnimator class. I tried to call
 setVisibility(View.GONE) on some my object during Gallery swype and it
 also cause stop animation of swiping.

 On Aug 24, 8:39 pm, Tomas Prochazka tomas.procha...@gmail.com wrote:



  Hi. I have ViewFlipper and the Gallery on the same activity.
  ViewFlipper periodically switch two view with simple fade animation.
  Problem is when I scrolling in Gallery at every switch start, Gallery
  stop animation and jump to nearest item. Is almost impossible to
  scroll if switch period is too short. I think that ViewFlipper start
  Animation which call invalidate() and this cause refresh Gallery, but
  why? Gallery is on the opposite side of screen, completely no reason
  to refresh gallery on every animation start,

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en