[Android] ListView tips

1. 为了避免出现异常:

  java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification.....

 更新数据之前getListView().setVisibility(View.GONE),然后mAllAdapter.notifyDataSetChanged(),更新之后getListView().setVisibility(View.GONE),可以避免

原文地址:https://www.cnblogs.com/lavieenrose/p/2429884.html