I've been fighting this for freaking hours:
I can open my ContentProvider and assign data to variable. I know want to
list all the records. I can't get anything to display. I've been trying to
simply things and I've run into a road block: for some reason, I keep
getting the error "Your content must have a ListView whose id attribute is
'android.R.id.list'".
The problem occurs when I modify this layout file:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:id="@+id/selection"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:drawSelectorOnTop="false"
/>
</LinearLayout>
If I take out the ListView, I get the error, but I can't find out where in
my code I'm referecing that.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---