SoFunction
Updated on 2025-04-10

Android Imageview image coverage specific implementation

Copy the codeThe code is as follows:

<RelativeLayout
xmlns:andro
android:
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Gallery
android:
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<ImageView
android:
android:background="#0000"
android:src="@drawable/a2"
android:scaleType="fitXY"
android:layout_alignTop="@id/overview"
android:layout_alignBottom="@id/overview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</RelativeLayout>

Notice:
Copy the codeThe code is as follows:

<SPAN style="FONT-SIZE: 18px"><RelativeLayout
xmlns:andro
android:
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Gallery
android:
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<ImageView
android:
android:background="#0000"
android:src="@drawable/a2"
android:scaleType="fitXY"
android:layout_alignTop="@id/overview"
android:layout_alignBottom="@id/overview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</RelativeLayout></SPAN>

android:background="#0000"
android:src="@drawable/a2"
Just pay attention to these two pictures are transparent