Open cyt1030 opened 8 years ago
Scrollview 中添加 listview会有滑动冲突,解决方法就是1.listview换成LinearLayout,用for循环添加子项。2.重写listview的onMeasure方法,让listview不可滑动。
@Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); }
重写 listview 此方法 我已试过 无效
Scrollview 中添加 listview 上拉加载 白屏问题 如何解决