开发者

Transition between many Views in ViewFlipper?

I am using "ViewFlipper" for my application.

This ViewFlipper includes 5 layout开发者_开发知识库s. I am trying make it that can be changed from current layout to any layout. In other words, it can be changed Layout#1 -> Layout#5 or Layout#4 -> Layout#1 ..etc.

How to make it ?

I used showNext() and showPrevious(). It is not better idea for my case.

Can I use ViewSwither instead of this case ?

Please advice.

Can you give example code related this issue ?

Thanks in advance.


You can use the method setDisplayedChild (defined in ViewAnimator, the superclass of ViewFlipper) passing in the child index that you want to display.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜