我有以下XML布局,基本上给我提供了EditText的圆角。为什么Android检查器说
它可以正常工作,我应该保留它吗?
solid元素不允许在这里
,而且corners元素不允许在这里
。它可以正常工作,我应该保留它吗?
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="10dp"
android:layout_width="match_parent"
android:layout_height="match_parent">
<solid android:color="#FFFFFF" />
<corners
android:bottomRightRadius="5dp"
android:bottomLeftRadius="5dp"
android:topLeftRadius="5dp"
android:topRightRadius="5dp" />
</shape>