may help you . tools:listitem only sets a design-time preview for a list item by providing a specific layout resource, be it a CardView-based layout or something different. You can use tools:listitem along with other tools attributes and @tools/sample resources to emulate components' runtime or compile-time behaviors such as layouts, dummy data, visibility e.t.c.
What are the Android SDK build-tools, platform-tools and tools? And which version should be used?