I'm trying to use the "tools" namespace feature in Android Studio.
I'm trying to populate the ListView
with dummy list items, for design purposes. The link here says the tools:listitem="@android:layout/<filename>"
should do.
But for some reason, Android Studio keeps showing Layout android:<filename> does not exist.
I'm trying to find a solution for it, so I don't have to run my app again and again with dummy values for testing.
I might be overlooking something very foolish, so forgive me. Here is what I have for now:
<ListView
android:id="@+id/controllerProfiles"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="20dp"
tools:listitem="@android:layout/profiles_list_item"/>
And I have a file profiles_list_item.xml
under res/layout.
Any suggestions or alternatives?
you should change the following line :
to this :
with
@android
you say that you want to use a layout from android resources but your layout is in your own project files.