Let me start by recognizing that I found a similar question here, but there was only one answer, and this answer is not applicable in my situation, therefore ...
I am just now falling into Android and came across a point. I am using Eclipse and ran into a problem trying to create a list state listing and continue to receive a "premature file termination" error in Eclipse. I have images in my drawable directory. I create a new file, name it date.xml and enter the following:
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/dategrey" android:state_selected="true" /> <item android:drawable="@drawable/datewhite" /> </selector>
The exact error I get is "Premature end of file. XML parsing error: No elements found." It bothers me because there is an element. What am I missing?
Blind fish
source share