1、重写listview的onMeasure()
/**
* 解决listview高度显示不正确
*/
public void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
{
int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
MeasureSpec.AT_MOST);
super.onMeasure(widthMeasureSpec, expandSpec);
}
2、补货listview的ontouch中的move事件,return true
android ScrollView 嵌套 ListView 不让listView滑动
时间: 2024-10-25 00:32:48