我试图创建一个新的可绘制'circle_button.xml'
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by Stephen Murby [06.07.2013] -->
<!-- Documentation: http://developer.android.com/guide/topics/resources/drawable-resource.html -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="ring"
android:innerRadius="0px"> <!-- Dimension Value only NOT an Integer -->
<!-- Use android:startColor for centre value, moving to android:endColor as the outer. -->
<gradient
android:type="radial"/>
</shape>
它位于“res/drawable/circle_button.xml”。然后我试图在我的“activity_main.xml”中创建一个实例。
我如何收到这些错误:
Error
Sat Jul 06 15:22:16 BST 2013
activity_fullscreen.xml: Failed to parse file .../res/drawable/circle_button.xml
Error
Sat Jul 06 15:22:16 BST 2013
activity_fullscreen.xml: Failed to convert @drawable/circle_button into a drawable