Android develops an ad display page that supports swipe left and right to refresh the display after the data is loaded
Call madapter.notifydatasetchanged () to promote the hair but no effect
Instantiateitem () is not triggered after notifydatasetchanged ()
The return value of getitemposition determines whether the Instantiateitem is updated @Override public int GetItemPosition (Object object) {return POS Ition_none; }
GetItemPosition ()
The function is used to return the position of the given object, which is the return value of Instantiateitem ().
The return value of the function is judged in viewpager.datasetchanged () to determine whether the Pageradapter.instantiateitem () function will eventually be triggered.
The implementation in Pageradapter is directly passed back to position_unchanged. If the function is not overloaded, it will always return position_unchanged, causing viewpager.datasetchanged () to be called when it is not necessary to trigger Pageradapter.instantiateitem (). Many people cause the call to occur because the function is not overloaded
After pageradapter.notifydatasetchanged (), nothing happened.
Http://www.apkbus.com/android-90417-1-1.html
"Bug resolution" call pageradapter.notifydatasetchanged () does not update