Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Graphical Layout shows first view of ViewFlipper, how to see others?

I am using Eclipse and a ViewFlipper. In Graphical Layout, I want to see the second, third, and forth layouts of my views - right now, I can only see the first view. Any suggestions?

like image 902
Karl Avatar asked Oct 11 '11 00:10

Karl


2 Answers

If I'm understanding you correctly, you want to see each view in the 'Graphical layout' tool? The way I do this, is instead of having all the layout work done in one xml (where your viewflipper is) I make each view a new layout xml. And then have each view (xml file) included into the view flipper by using this....

<include
layout="@layout/layout_media"
android:id="@+id/flipper_media" />

Hope this helps.

like image 96
preludedrew Avatar answered Sep 22 '22 10:09

preludedrew


just put each layout in relative layout or linear what ever you are working with then with each layout you will work with the first one in the order and etc.. then at the end put each layout in the order you want later

like image 34
Yasin Hassanien Avatar answered Sep 21 '22 10:09

Yasin Hassanien