I am trying to define a form in an XML document as follows:
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <gradient android:startColor="#FFFFFF" android:endColor="#00FF00" android:angle="270" /> <corners android:radius="3dp" /> <stroke android:width="5px" android:color="#000000" /> </shape>
However, I get the following warnings and errors:
- The width and height of the layout should be defined (not a single example shows them as determined)
- Element angles are not allowed here.
- Element bar is not allowed
How can I fix these errors?
source share