Thanks to all. I got it , through my logical itself.
On Wed, Jun 27, 2012 at 7:48 PM, tarun sablok <[email protected]>wrote: > Well this is not related to your queation .... Have you noticed that > while flipping through the views ViewFlipper leaks a lot of memory. > > > On Wed, Jun 27, 2012 at 12:05 PM, Narendra Singh Rathore < > [email protected]> wrote: > >> >> >> On Wed, Jun 27, 2012 at 12:36 AM, chandur mani >> <[email protected]>wrote: >> >>> I have 5 content views in view flipper, here i use to see all 5 content >>> through viewflipperinstance.showNext() and >>> viewflipperinstance.showPrevious(). >>> >>> Here my problem is both next and previous buttons click, it show all 5 >>> content and again start 1st. >>> >>> I need whenever user click next it will up to 5th content and same to >>> previous when user click back it will show up tp 1st content. >>> >> >> >> You can put a check something like this. >> >> if(viewflipperinstance.getDisplayedChild()!=0) >> { >> viewflipperinstance.showPrevious() >> } >> >> >> or >> >> >> if(viewflipperinstance.getDisplayedChild()!=(viewflipperinstance.getChildCount()-1) >> { >> viewflipperinstance.showNext() >> } >> >> >> This will help you out. >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

