Callmepeanut

Results 4 comments of Callmepeanut

@kashifandroiddev If you look in the source you will found: ``` if (childView == null) { throw new IllegalStateException("MaterialRippleLayout must have a child view to handle clicks"); } childView.setOnClickListener(onClickListener); ```...

You can manually scroll it to 0 like below, it works for me. ``` adapter.add(entity, 0); recyclerView.scrollToPosition(0); ```

I solve this by: String tmp = mItems.get(fromPosition) mItems.remove(fromPosition); mItems.add(toPosition, tmp); much shorter.

用过leancloud,规模较小。基本上比较稳定,偶尔会出现收发慢的情况~