On android 2.3, add header after setAdapter (even if you have added early, then removed) will throw an exception. To hide or show a header dynamically, use setVisibility(). How? You can see Hiding header views.
More Related Contents:
- get Feature item to list View
- Android, ListView IllegalStateException: “The content of the adapter has changed but ListView did not receive a notification”
- Filtering ListView with custom (object) adapter
- What’s the purpose of item-id’s in Android ListView Adapter?
- android attaching multiple adapters to one adapter
- Logcat error: “addView(View, LayoutParams) is not supported in AdapterView” in a ListView
- OnItemClickListener doesn’t work with ListView item containing button
- How to get selected list items from a Listview with checkBox and Custom Adapter?
- ArrayIndexOutOfBoundsException with custom Android Adapter for multiple views in ListView
- Android: ListView elements with multiple clickable buttons
- Android Endless List
- Android ListView Refresh Single Row
- Android: Binding data from a database to a CheckBox in a ListView?
- dynamic listview adding “Load more items” at the end of scroll
- setOnItemClickListener on custom ListView
- Find out if ListView is scrolled to the bottom?
- Android – Keep ListView’s item highlighted once one has been clicked
- android: listview in listview
- How to get the selected item from ListView?
- Yet another getView called multiple times
- Highlight custom listview item when long click
- custom font in android ListView
- Android – what is the meaning of StableIDs?
- Why did the ListView repeated every 6th item?
- ListFragment OnListItemClick not being called
- Mask ImageView with round corner background
- Android ListView addHeaderView() nullPointerException for predefined Views defined in XML
- Detecting the scrolling direction in the adapter (up/down)
- ListView: setItemChecked only works with standard ArrayAdapter – does NOT work when using customized ArrayAdapter?
- Checkbox auto call onCheckedChange when listview scroll?