Using Viewswitcher With Eclipse Ide
I am new to android programming, and I am using eclipse. I am using ViewSwitcher, and able to switch back and forth between views. My question is with eclipse. In eclipse, how can
Solution 1:
Its a bit late but I had the same problem and got around it with only xml changes by putting the contents of the 2 layouts in other files and including them in the original file. Not sure if this is proper but it made it easier to test.
<ViewSwitcherandroid:id="@+id/detailSwitcher"android:layout_width="fill_parent"android:layout_height="fill_parent"><includelayout="@layout/layout_file_1" /><includelayout="@layout/layout_file_2" /></ViewSwitcher>
Solution 2:
I would not create a view graphically. It is really easy to type in the XML and then you know you are making exactly what you want. Use the GUI to check your work. I would certainly build the two layouts in separate files and then paste them into the one with the view switcher when you have it just as you want it.
Post a Comment for "Using Viewswitcher With Eclipse Ide"