问题与创建新的XML文件
问题描述:
我试图创建/res/drawable
一个新的XML文件(在Eclipse开发Android)问题与创建新的XML文件
消息我得到的是;
Multiple annotations found at this line: - Premature end of file. - error: Error parsing XML: no element found
当我在正确的文件夹我按新建>文件我,然后我把它命名到ic_tab_artists.xml
,右后我得到的消息^
那么,我究竟做错了什么?
答
尝试添加一些在文件中有意义的东西。例如:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"
android:dither="true">
<item
android:state_window_focused="false"
android:drawable="@android:color/transparent" />
</selector>