开发者

ViewFlipper and the Gallery on the same activity

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开发者_StackOverflow社区() 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.


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)

I made bug report for this: http://code.google.com/p/android/issues/detail?id=19581

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜