2
Ich habe das folgende XML-Layout, die im Grunde gibt mir abgerundete Ecken und ich benutze es auf EditText. Warum sagt der Android-Inspektor, dass die element solid is not allowed here
und auch element corners is not allowed here.
Android XML-Element ist nicht erlaubt
Es funktioniert gut, sollte ich es einfach lassen?
<?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>
so einfach, aber ich konnte nicht herausfinden, warum es das sagte. Funktioniert perfekt. Danke für deine Weisheit :) Wird als korrekt markiert, sobald es mich lässt. – Phil
@Phil du bist willkommen :) –