标签:scrollview 嵌套 listview 显示不全
简单自定义组件解决如上问题:
public class ExpandListView extends ListView { public ExpandListView(Context context, AttributeSet attrs) { super(context, attrs); } /** * 设置不滚动 */ public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); } }
标签:scrollview 嵌套 listview 显示不全
原文地址:http://blog.csdn.net/pengkv/article/details/43203125