Welcome to the Treehouse Community
Looking to learn something new?
Noam Elbaz5,672 Points
Empty Text View (Blog Reader - Stage 4 - Adapting Data for Display in a list)
I'm on Android Studio: A few minutes in to the video, Ben switched a textView into an empty text view, which we will be referencing in code with the line: TextView emptyTextView = (TextView) getListView().getEmptyView();
i did not see any easy option to switch the textView to an Empty text view in android studio and setting the text in the XML to = "" did not seem to work.
.... and yes i did google it.
Did you set the id of the TextView to empty in the xml file?
<TextView android:id="@android:id/empty" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />