according to this article and Stackoverflow , when hasStableIds
returns false, when adapter calls notifyDataSetChanged ()
, it will decide whether to refresh Item, based on the change of ID returned in getItemId
. That is to say, it has a local refresh effect. But I tried, and whether hasStableIds
returns true or false, the getView
method is called to refresh all visible layouts. So what exactly is the purpose of hasStableIds
?