I have read articles such as BaseAdapter.notifyDataSetChanged doesn't update its ListView and the suggestions are to update the list and call myBaseAdapter.notifyDataSetChanged, but I don't have any own list or vertical ListView to update?
I have a View that looks like a spreadsheet and can be very long, like 10,000 rows and therefore lacks own coded vertical ListView and java list but responds to public View getView (int position, View convertView, ViewGroup parent) by retrieving its data via a ViewHolder from a JNI system, row by row with a horizontal ListView with its Viewholder. In Windows, you have to make a custom version of the Win32 ListView where you don't load the whole list but only what is visible, (like the BaseAdapter), otherwise it takes a long time to load the entire list.
- It's like in a test dummy answering BaseAdapter.getView() with a TextView with position number (no list, just mechanical responses).
- The list can be edited and updated by complex AlertDialogs, but if I call myBaseAdapter.notifyDataSetChanged I don't get an update, myBaseAdapter.getView doesn't get calls.
Wondering:
- If possibly the RecyclerView behaves differently but even here the list seems to be of central importance for notifyDataSetChanged()?
- I can definitely think of a completely different solution, but everything works great except notifyDataSetChanged()?
- The only thing I need is something that triggers updates, myBaseAdapter.getView() get calls and of course you could create a dummy list, but that doesn't seem like a good solution, when the BaseAdapter already holds the list?