Android Recyclerview Adapter Notifyitemchanged() Getting Illegalstateexception Already In The Pool
Iam using Recyclerview and update it by notifyItemChanged() recyclerView using linearlayoutmanager when data updated from socket i update recycler by adapter notifyItemChanged() so
Solution 1:
after many searches and try many solutions finally i find the solution i changed ReyclerView To listView and updating my list by this code
if (itemPos >= company_recycler.getFirstVisiblePosition() && itemPos-1<company_recycler.getLastVisiblePosition()){
finalViewcell= company_recycler.getChildAt(itemPos - company_recycler.getFirstVisiblePosition() );
runOnUiThread(newRunnable() {
@Overridepublicvoidrun() {
adapter.getView(itemPos-1, cell, company_recycler);
}
});
this working fine to me
Post a Comment for "Android Recyclerview Adapter Notifyitemchanged() Getting Illegalstateexception Already In The Pool"