w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Clear( ) ArrayAdapter not working properly - Android

After calling Adapter.clear() you need to call Adapter.notifyDataSetChanged()

Basically whenever the data backing the adapter changes, you need to call Adapter.notifyDataSetChanged() to reflect the changes on the ListView.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.