我似乎無法設置我的imageView
填滿我的按鈕的整個空間(視圖)。我有一個有白色空間作爲背景的按鈕。ImageView內滾動視圖(Android)
請看看我的樣本
我的代碼:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom" >
<ScrollView
android:id="@+id/scroll"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/imageView21"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/bg_shkaf" />
</RelativeLayout>
</ScrollView>
</RelativeLayout>
我同意@Tufan,發佈更多詳細信息... – Aspicas
您是否嘗試設置縮放類型「fitXY」? –
@ShivamVerma他/她已經使用'android:scaleType =「centerCrop」' – Aspicas