ReactViewPager.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:RNLearn_Project1 作者:
/**
 * Remove all the views from the adapter and de-parents them from the ViewPager
 * After calling this, it is expected that notifyDataSetChanged should be called soon
 * afterwards.
 */
void removeAllViewsFromAdapter(ViewPager pager) {
  mViews.clear();
  pager.removeAllViews();
  // set this, so that when the next addViews is called, we return POSITION_NONE for every
  // entry so we can remove whichever views we need to and add the ones that we need to.
  mIsViewPagerInIntentionallyInconsistentState = true;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号