stone86
stone86
建议
我这是纯utf8的环境。 发现确实很多乱码的地方。 utils中的代码, windows文件分隔符 \\ (转义后就是\) ; linux/unix上,只要一个 / 就可以
去掉Bitmap的回收代码, 因其在某些机型系统上,会引发'使用已回收的Bitmap'的异常,而导致崩溃
这两种设备上,不会被回调; 好吧,可见性判断 只能自己来了。
哪位仁兄能解答下的。
nothing
`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好