Hiding ViewFlipper TableLayouts
<p>I have a view flipper where I slide from view 1 through to 3. Is there a way I can programatically hide the views that are not needed so that the user doesn't have a blank view to flip through?</p>

<p>My XML is:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;

&lt;LinearLayout android:id="@+id/LinearLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"&gt;
    &lt;LinearLayout android:id="@+id/LinearLayout02" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"&gt;
        &lt;ViewFlipper android:id="@+id/ViewFlipper01" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt;
            &lt;!--adding views to ViewFlipper--&gt;

            &lt;TableLayout android:id="@+id/TableLayout01" android:layout_height="wrap_content" android:layout_width="fill_parent"&gt;
                &lt;TextView android:id="@+id/TextView01" android:layout_height="wrap_content" android:gravity="top|center_horizontal" android:layout_width="wrap_content" android:text="View 1" android:textSize="25sp" android:textColor="@color/lightpurple"&gt;&lt;/TextView&gt;
            &lt;/TableLayout&gt;

            &lt;TableLayout android:id="@+id/TableLayout01" android:layout_height="wrap_content" android:layout_width="fill_parent"&gt;
                &lt;TextView android:id="@+id/TextView02" android:layout_height="wrap_content" android:gravity="top|center_horizontal" android:layout_width="wrap_content" android:text="View 2" android:textSize="25sp" android:textColor="@color/lightpurple"&gt;&lt;/TextView&gt;
            &lt;/TableLayout&gt;

            &lt;TableLayout android:id="@+id/TableLayout01" android:layout_height="wrap_content" android:layout_width="fill_parent"&gt;
                &lt;TextView android:id="@+id/TextView03" android:layout_height="wrap_content" android:gravity="top|center_horizontal" android:layout_width="wrap_content" android:text="View 3" android:textSize="25sp" android:textColor="@color/lightpurple"&gt;&lt;/TextView&gt;
            &lt;/TableLayout&gt;

        &lt;/ViewFlipper&gt;
    &lt;/LinearLayout&gt;
&lt;/LinearLayout&gt;
</code></pre>
