当我们想把多个图层叠在一起显示的时候,可以使用layer-list
在/res/drawable/文件夹下建立 test.xml
内容如下:
使用的时候和其他的资源文件的使用方法一样 android:background="@drawable/test"