Hi,
I am trying to get the image to consume just enough space and get
"last_line" to be just below the image.  but it seems that the image
always have some extra space/padding on top and below.

Why?



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android";
  android:layout_height="wrap_content"
  android:layout_width="fill_parent"
  android:orientation="vertical">

<TextView android:layout_height="wrap_content"
android:layout_width="fill_parent"
 android:text="header"
/>

<LinearLayout android:orientation="horizontal"
  android:layout_height="wrap_content"
  android:layout_width="fill_parent"
>

<ImageView
   android:layout_width="0dip"
   android:layout_height="wrap_content"
   android:scaleType="fitCenter"
   android:layout_weight="1"
   android:src="@drawable/jayzhou_album_cover_orginal"
   />

<TextView android:layout_height="wrap_content"
android:layout_width="0dip"
        android:autoLink="all"
        android:text="aaaaaaaaa asaaaaaaaaaa asaaaaaaaaaa asaaaaaaaaaa
asaaaaaaaaaa asa"
        android:layout_marginLeft="5dip"
        android:layout_weight="3"
/>

</LinearLayout>

<TextView android:layout_height="wrap_content" android:id="@+id/
last_line" android:layout_width="fill_parent"
 android:text="another line of text"
/>
</LinearLayout>

-- 
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