shape.xml
<?xml
<shape
android:shape="rectangle">
<!--
<!--
<padding
android:top="10dp"
android:right="10dp"
/>
</shape>
main.xml
在android:background="@drawable/shape"就使用了shape.xml资源
<?xml
<shape
android:shape="rectangle">
<!--
<!--
<padding
android:top="10dp"
android:right="10dp"
/>
</shape>
在android:background="@drawable/shape"就使用了shape.xml资源