我創建了一個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 2012-01-04 17:08:41