リスト項目として使用ImageView
するTextView
内にとを入れて、を の行番号で縦に伸ばしたい。のdrawableは縦棒のpng画像です。RelativeLayout
ImageView
TextView
ImageView
次のレイアウトでは、Eclipse の Layout ビューでは問題ないように見えますが、実行時にImageView
の高さが満たされません。RelativeView
代わりに、常に元の画像の高さを維持します。
<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>
期待どおりに(または Eclipse レイアウト ビューに示されているように)動作しないのはなぜですか?