Here is the view flipper xml
<ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/flipper"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<include android:id="@+id/first" layout="@layout/simp2" />
<include android:id="@+id/second" layout="@layout/simp2adv" />
</ViewFlipper>
simp2.xml and simp2adv.xml both have a textview. How do I ensure that they both show the same content? I tried giving both textview the same id, but only one gets edited. The other is ignored.
I solved it by making switch statements in my activity class.
for example:
with
Doing so allows me to modify only the visible textView.
When I flip the view, i save the content of the visible textView to a String variable, then load in into the next visible textView.