如何用我的图像填充整个背景? Android
How to fill the whole background with my image? Android
我似乎无法用我在 ConstraintLayout 中选择的图像填充我的背景如何解决这个问题?
<ImageView
android:id="@+id/background_one"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/background" />
这是我的 ImageView 代码
在图像视图中添加比例类型。
<ImageView
android:id="@+id/background_one"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/background"
android:scaleType="center"/>
我似乎无法用我在 ConstraintLayout 中选择的图像填充我的背景如何解决这个问题?
<ImageView
android:id="@+id/background_one"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/background" />
这是我的 ImageView 代码
在图像视图中添加比例类型。
<ImageView
android:id="@+id/background_one"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/background"
android:scaleType="center"/>