9patchイメージを作成しましたが、何とか垂直方向に伸びます。 私は他の9パッチの画像を試しましたが、他の状況でも同じ効果があります。だから、9patchはうまくいくはずです。 これは私のXMLコードです:9patchは縦に伸びますが横には伸びません
..
<ImageView
android:id="@+id/bottombar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:contentDescription="@string/app_name"
android:src="@drawable/bar" />
</RelativeLayout>
誰もが同じ問題を持っていたし、それを解決する方法を知っていますか?
おかげ
ありがとう、私は背景を試みたが、確かにそれはscaleTypeだと思う。すでに数時間それを理解していた! – Diego