DeNitE Appz
DeNitE Appz

Reputation: 1011

MergeAdapter and hiding headers (views)

I have three adapters and headers before each adapter in a listView. If a particular section is empty, how can I hide that header(view)?

It leaves a space where it is if I make it's layout visibility gone.

Upvotes: 1

Views: 143

Answers (1)

DeNitE Appz
DeNitE Appz

Reputation: 1011

I figured it out! :-)

                mergeAdapter.setActive(songHeaderView, false);

So simple!

Upvotes: 1

Related Questions