补充,换了音乐链接也不行http://m801.music.126.net/20190324211802/aa378cff68eb955d54dcec1a04aaf759/jdyyaac/0e0e/0152/5109/9da9e8aff5683427e9b8fc6702897a3e.m4a
自定义RecyclerView,重写onMeasure()方法
protected void onMeasure(int widthSpec, int heightSpec) {
int measuredHeight = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
super.onMeasure(widthSpec, measuredHeight);
}
简单实现ScrollView嵌套RecyclerView或ListView高度问题
protected void onMeasure(int widthSpec, int heightSpec) {
int measuredHeight = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
super.onMeasure(widthSpec, measuredHeight);
}
简单实现ScrollView嵌套RecyclerView或ListView高度问题
2019-03-21