Reputation: 1201
Steps to Reproduce:
What should happen:
It should use the layout from tools:listitem to render list items.
Actual result:
Nothing changes, it still shows the default list with generic views
Bug Report
I could see this bug was already filed on Jul 5, 2016 Bug Report Link
Are there any work around available to render list?
Upvotes: 15
Views: 2940
Reputation: 536
One thing to notice: it's tools:listitem
not tools:listItem
which is somewhat confusing. Took me some time to figure that out, since Android Studio currently doesn't provide autocompletion for that.
Upvotes: 7
Reputation: 14135
Another reason why tools:listItem
doesn't work is when you're using the AndroidX's RecyclerView when using an older Android Studio. Update to 3.2 or higher and it will work.
Upvotes: 1
Reputation: 67
You must define an id i.e. android:id="@+id/list_view" to your list
Upvotes: 2