[英]Android XML element is not allowed
我有以下XML布局,基本上給我圓角,我在EditText上使用它。 為什么Android檢查員會說element solid is not allowed here
也element solid is not allowed here
element corners is not allowed here.
它工作正常,我應該離開嗎?
<?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>
該XML文件應位於res/drawable
。 它可能位於res/layout
,這是一個不正確的位置。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.