一、夜间模式
http://www.jianshu.com/p/dcfcfcbda7ac
二、调用setBackgroundColor方法失效的原因:
最开始我是这样写的 int resId = R.color.yellow,调用的时候是 setBackgroundColor(resId);
这样写没有效果,应该改成setBackgroundColor(context.getResource().getColor(resId));
SDK23之后,可以写成:setBackgroundColor(ContextCompat.getColor(context,resId));
三、垂直RecyclerView中嵌套一个横向RecyclerView,横向RecyclerView不响应AppbarLayout的Behavior的问题:
给横向RecyclerView设置一句:setNestedScrollingEnabled(false)