Thanks, Mark, that worked. bringChildToFront(View v) seems to be a non-functional inheritance legacy for ViewFlipper.
For anyone who will implement smth like this later, I suggest adding the views with addView(View v, int index), just a safety net; indexes MUST be sequential & increasing. Otherwise you'll get an outofbound exception. Somewhat weird compared to Swing CardLayout. On Feb 14, 10:17 pm, Mark Murphy <[email protected]> wrote: > gsmd wrote: > > I have this ViewFlipper populated with views via addView(View v). Now, > > the simple task is to bring specific (not just next or previous) view > > to the top. Looks like bringChildToFront(View v) with a passed > > reference to a View should do this. It doesn't, the "top" view doesn't > > change. > > Plz suggest what am I doing wrong. TIA. > > Try setDisplayedChild(). > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > Android Training in Sweden --http://www.sotrium.com/training.php --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

