I put an ImageView and a TextView within a RelativeLayout, and want the ImageView to grow vertically with the line number of TextView. The drawable of the ImageView is a png picture of vertical bar.
With the following layout, the ImageView does not fill the height of the RelativeView. Instead, it alway keeps the original picture's height. Why does it not work as I expect? <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ImageView android:id="@+id/iv" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentLeft="true" android:src="@drawable/vbar" android:adjustViewBounds="false" android:scaleType="fitXY"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="false" android:layout_toRightOf="@id/iv" android:layout_alignParentBottom="true" /> </RelativeLayout> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

