ViewFlipper Switch in Android Studio Graphical Interface?
Asked Answered
M

2

9

Thanks for taking a second and responding to my question if you get the time; I'm fairly new to programming android so any help is great!

I am using Android Studio, and have written an XML layout with multiple layouts in it that I switch between using ViewFlipper.showNext() or ViewFlipper.setDisplayedChild(). Programmatically, everything is working excellent. However, I am using the graphical XML interface of Android Studio and would like to be able to see the layout displayed by showNext() in the graphical interface.

Does anyone know how to manually flip the viewFlipper in the Android Studio graphical interface (or in Eclipse for that matter)?

Muscatel answered 21/11, 2013 at 16:39 Comment(0)
A
2

The only way I see is putting the right code part as the first child of the viewflipper to see rendering in the graphical layout.

Aureaaureate answered 22/1, 2014 at 10:20 Comment(1)
Yeah I haven't found a way either in Android Studio or Eclipse. In the end, though it didn't matter because I've switched to using more intents instead.Muscatel
P
1

What I do is drag the views that you don't want as the first to the viewflipper. This places/stacks those views underneath the view that you want.

-ViewFlipper -ViewUwant -viewuduntwant

Peplos answered 23/1, 2015 at 0:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.