Why do you have so many LinearLayouts inyour XML?  You don't need to wrap
your TextView or your ToggleButton in a LinearLayout.  That being said, the
problem is that you are declaring your LinearLayout to be VERTICAL...
Hence, the TextView would be added, and then the ToggleButton would be
added VERTICALLY beneath the TextView...

Have you tried something simple like this?

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android";
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:padding="4px">

    <ImageView android:id="@+id/icon"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:layout_alignParentTop="true"
        android:layout_alignParentBottom="true"
        android:layout_marginRight="4px" />

    <TextView android:id="@+id/programa"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:singleLine="true"
        android:ellipsize="end" />

    <ToggleButton
        android:textOn=""
        android:textOff=""
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">
</LinearLayout>

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Jun 26, 2012 at 12:53 PM, Emanuel Tivadar <[email protected]>wrote:

> did you managed to solve this ? if yes, please provide the solution.
> thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to