LinearLayout inside another LinearLayout issue
<p>i have a <code>LinearLayout</code> inside another <code>LinearLayout</code>. the issue i have is that the <code>ToggleButton</code> is not visible in the second <code>LinearLayout</code>..here is my complete UI.also i want to know is this layout design efficient or no. i know i can use <code>TableLayout</code> but then i have problem in fitting 3 components on one line</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="10dip" &gt;

&lt;TextView
    android:id="@+id/supplierNameTV"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/supplierNameTV"
    android:textColor="#FFFFFF" 
    android:layout_gravity="right"/&gt;

&lt;LinearLayout android:orientation="horizontal" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content"&gt; 

    &lt;AutoCompleteTextView
        android:id="@+id/supplierName_CB"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" /&gt;

    &lt;ToggleButton
        android:id="@+id/toggleButton1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="right"
        android:checked="false"
        android:text="ToggleButton" /&gt;

&lt;/LinearLayout&gt;
&lt;TextView
    android:id="@+id/prodNameTV"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/prodNameTV"
    android:textColor="#FFFFFF" 
    android:layout_gravity="right"
    android:layout_marginBottom="5dip"
    android:layout_marginTop="5dip"/&gt;

&lt;AutoCompleteTextView
    android:id="@+id/prodName_CB"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"/&gt;

&lt;Button
    android:id="@+id/add_button"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="@string/addproduct_button"
    android:textColor="#372c24" /&gt;


&lt;ListView
    android:id="@+id/listview"
    android:layout_height="wrap_content"
    android:layout_width="match_parent"&gt;
&lt;/ListView&gt;


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