我有動態尺寸的圖像和具有統計高度的ImageView
。 我試圖像這樣在我的imageView
中綁定我的圖像。圖像水平中心圖像無法垂直對齊
我的意思是水平填補ImageView
,而不是垂直方向。這裏是我的代碼
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="280dp">
<ImageView
android:id="@+id/exploreImage"
android:src="@drawable/beard1"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
但現在ScaleType
存在ImageView
,允許這種方式進行綁定。
你有什麼想法如何做到這一點?
圖片未找到 –
圖片男人在哪裏? –
您有足夠的信譽在問題中上傳圖片。請這樣做。 – user3301551