Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ヌガー対応 potatotios #33

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →

ヌガー対応 potatotios #33

ヌガー対応 potatotios #33

Hiroshi Hashimoto

September 28, 2016

Transcript

29 slides
  1. 刿倜ׅ׷ה歗꬗ָ涯ֻז׶ת׃׋ W/RecyclerView: Cannot call this method in a scroll callback.

    Scroll callbacks might be run during a measure & layout pass where you cannot change the RecyclerView data. Any method call that might change the structure of the RecyclerView or the adapter contents should be postponed to the next frame. java.lang.IllegalStateException: at android.support.v7.widget.RecyclerView.assertNotInLayoutOrScroll(RecyclerView.java:2403) at android.support.v7.widget.RecyclerView $RecyclerViewDataObserver.onItemRangeInserted(RecyclerView.java:4634) at android.support.v7.widget.RecyclerView $AdapterDataObservable.notifyItemRangeInserted(RecyclerView.java:10472) at android.support.v7.widget.RecyclerView $Adapter.notifyItemInserted(RecyclerView.java:6214)

More Decks by Hiroshi Hashimoto

Other Decks in Technology