CustomLayoutManager icon indicating copy to clipboard operation
CustomLayoutManager copied to clipboard

当RecyclerView中的item数量为0时,该如何更新?

Open aloe20 opened this issue 7 years ago • 2 comments

在onLayoutChildren方法中对item的数量为0时做了判断不处理if (getItemCount() <= 0 || state.isPreLayout()),在实际中,RecyclerView可能由有数据切换为无数据,此时调用notifyDataSetChanged无效,这个问题该如何解决呢?

aloe20 avatar Jun 01 '17 02:06 aloe20

请问,如何让item, 不自旋转呢?

09308910112 avatar Nov 24 '17 06:11 09308910112

可以将item反向旋转

aloe20 avatar Mar 02 '18 05:03 aloe20