在我的整个应用程序中,我有几个LinearLayout
s 的背景:
android:background="@drawable/metal_plate"
可绘制\metal_plate.xml:
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/diamond_metal"
android:tileMode="repeat"
android:dither="true">
</bitmap>
我想在金属板的 4 个角上放置 4 个螺丝位图。
我在几个地方使用了金属板,所以我更喜欢将它定义为一个可绘制的,而不是必须在每个场合都用RelativeLayout
.
是否可以在可绘制文件夹中定义 XML 以组合平铺金属板和 4 个螺钉?