Metallicraft
Metallicraft

Reputation: 2201

Android Gridview setEmptyView

I'm obviously missing something little. I have an android gridview set up and I have a textview set as the emptyview. The emptyview shows up fine when there's no data, but when there is data, the emptyview doesn't go away and no data is shown. I thought maybe this would automatically happen. What am I forgetting?

Thanks

Upvotes: 0

Views: 2053

Answers (1)

lcoq
lcoq

Reputation: 10726

Do you have set an Adapter for your GridView ? (cf : myGridView.setAdapter(...) )

If you're using an ArrayAdapter, do you make a call to myArrayAdapter.notifyDataSetChanged() ?

Upvotes: 1

Related Questions