开发者

Issue with creating new xml files

I'm trying to create a new xml file in /res/drawable (developing for android in eclipse)

the message i get is ;

Multiple annotations found at this line: - Premature end of file. - error: Error parsing XML: no element found

开发者_StackOverflowWhen I'm in the right folder i press New>File , then I name it to ic_tab_artists.xml, and right after i get the message ^

So, what am i doing wrong?


Try adding something that makes sense inside the file. For example:

<?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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜