change EditText to TextView
<p>I want to change the <code>TextView</code> to <code>EditText</code> and the <code>TextView</code> to <code>EditText</code>, therefore I decided to use the <code>ViewSwitcher</code> element on android, I read about it on the <a href="http://developer.android.com/reference/android/widget/ViewSwitcher.html" rel="nofollow">android developer website</a>.</p>

<p>However I still have some point that I don't understand:</p>

<ol>
<li>How can I determine the current switch? (for example, to show only the <code>EditText</code>, and to invisible the <code>TextView</code>)</li>
</ol>

<p>Here is my code:</p>

<pre class="lang-xml prettyprint-override"><code> &lt;ViewSwitcher
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/my_switcher"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" &gt;

        &lt;TextView
            android:id="@+id/clickable_text_view"
            android:clickable="true"
            android:onClick="TextViewClicked"
            android:text="@string/some_value" /&gt;

        &lt;EditText
            android:id="@+id/hidden_edit_view"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:hint="@string/some_value" &gt;
        &lt;/EditText&gt;
    &lt;/ViewSwitcher&gt;
</code></pre>
