how can i use toggle button in my application
<p>file.xml</p>

 

<p></p>

<p> </p>

<p> </p>

<p></p>

<p>file_ch.xml</p>

   

<p></p>

<p> </p>

<p> </p>

<p></p>

<p>main.xml</p>



<p>

<pre><code>android:layout_width="fill_parent"

android:layout_height="fill_parent"

android:orientation="vertical" &gt;
</code></pre>

<p>

<pre><code>android:id="@+id/rl_onoff"

android:layout_height="wrap_content"&gt;
</code></pre>

<p>

<pre><code>android:layout_width="80dp"  

android:layout_height="40dp" 

android:src="@drawable/file_ch" 

android:visibility="visible"&gt;&lt;/ImageView&gt;
</code></pre>

<p>

<pre><code>android:layout_width="80dp"  

android:layout_height="40dp" 

android:src="@drawable/file" 

android:visibility="invisible"&gt;&lt;/ImageView&gt;
</code></pre>

<p></p>

<p></p>

<p>i want iphone toggle </p>

<p>but its showing only on and off part but not showing on_invisible and off_insible part</p>
