RecyclerView icon indicating copy to clipboard operation
RecyclerView copied to clipboard

Results 6 RecyclerView issues
Sort by recently updated
recently updated
newest added

`public BaseHolder(ViewGroup parent, @LayoutRes int resId) { super(LayoutInflater.from(parent.getContext()).inflate(resId, parent, false)); mViewArray = new SparseArray(); }` 这里太依赖parent了。parent就是RecyclerView。 可以再增加一个构造方法: `public BaseHolder(Context context, @LayoutRes int resId) { super(LayoutInflater.from(context).inflate(resId, null, false)); mViewArray = new...

protected修饰的方法只能在相同包中的子类才能引用。基于此,BaseHolder的一些方法还是改成public好

BannerView bannerView = new BannerView(this); adapter.addHeaderView(bannerView); 这个bannerView会被当做一个Item添加进列表而不是头部;

当给RecyclerView设置setOnTouchListener()并且给itemView设置onClickListener()时,onTouch()方法中ACTION_DOWN,被消费了

github地址:https://github.com/lypeer/FastDevTools 介绍其的blog地址:http://blog.csdn.net/luoyanglizi/article/details/51519686