我有一个XML布局。frame_top_widget_holo是一种带有底部和右侧填充线的9-patch可绘制对象。它还具有顶部和左侧的拉伸边界线。它被设置为背景,还有一个图像可绘制对象被设置为源。结果显示两者,但是src图像重叠了可绘制的填充。问题在于scaleType,因此我怀疑这可能是一个错误。有人知道如何解决吗?
<?xml version="1.0" encoding="utf-8"?>
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:scaleType="centerCrop"
android:background="@drawable/frame_top_widget_holo"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/bigpicture" />