Skip to content Skip to sidebar Skip to footer

Error Android.content.res.resources$notfoundexception: File From Xml Type Layout Resource Id #0x102000a

Hey, I'm trying to create a design for a list that looks like (and mostly behaves like) the call log, like shown here: For this I downloaded the source code and I'm studying it fo

Solution 1:

I had the same problem. I was setting the text like this:

statusView.setText(firstVisiblePosition);

The problem was that firstVisiblePosition was an integer. Compiler didn't complain. Fixed it by

statusView.setText(""+firstVisiblePosition);

Solution 2:

Sounds lame but if you are using Eclipse, have you tried cleaning and rebuilding your project? That fixed a similar problem I was having.

Solution 3:

I am also able to solve the problem by converting the Integer value to String while using:

name.setText(name_value_needs_to_be_string);

where name is a TextView.

Solution 4:

The compiler interprets your int argument as a resource reference and assumes you are calling:

publicfinalvoidsetText(int resourceId)

but your intention was to call

publicfinalvoidsetText(CharSequence text)

To fix it, do like so:

myTextView.setText(Integer.toString(myIntegerValue));

Solution 5:

set the id of your listView to

android:id="@id/android:list"

I dont know, whether

android:id="@android:id/list"

does work correctly

Post a Comment for "Error Android.content.res.resources$notfoundexception: File From Xml Type Layout Resource Id #0x102000a"