SuperAdapter icon indicating copy to clipboard operation
SuperAdapter copied to clipboard

RecyclerView ItemAnimator无效

Open ByteRax opened this issue 10 years ago • 3 comments

如题

ByteRax avatar May 11 '16 15:05 ByteRax

如果方便的话,请贴一下关键代码。

chenenyu avatar May 11 '16 23:05 chenenyu

recyclerView=getView(R.id.listView); mPtrLayout=getView(R.id.ptr_rv_layout); homeAdapter=new HomeAdapter(context,new ArrayList(),R.layout.list_item_home); recyclerView.setAdapter(homeAdapter); StatusBarUtils.processActionBar(getView(R.id.toolbar),true); recyclerView.setItemAnimator(newDefaultItemAnimator()); for (int i=0;i<10;i++){ homeAdapter.add("fsaf"); }

ByteRax avatar May 12 '16 12:05 ByteRax

这个for循环,根本来不及做动画吧

chenenyu avatar May 13 '16 02:05 chenenyu