android 如何实现listview嵌套? 用 拓展的listView ,可能更好,demo 网上一大把,只要肯去搜索. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 重写ListView的onMeasure方法,大概这个样子:public class MyListView extends ListView { public MyListView(Context context, AttributeSet attrs) { super(context, attrs); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); }}然后就和普通ListView一样使用就好了,只是不要太大的数据量或者图片在里面,容易OOM 输入法遮挡布局问题,有啥好的解决方案吗? android如何得到WebView网页中的控件 急,ListView的notifyDatasetChanged()问题 Android实现拨号功能的问题 求救:APK打包问题. 【100分求】网页在android系统浏览器上大小自适应的问题 安卓的app图标的位置可以代码移动吗? 初学者对几个事件的疑问 关于不继承TabActivity使用TabHost的问题 Android跳转问题 Scoket 客户端收消息 阻塞问题 android jni显示yuv视频
public MyListView(Context context, AttributeSet attrs) {
super(context, attrs);
} @Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
super.onMeasure(widthMeasureSpec, expandSpec);
}
}然后就和普通ListView一样使用就好了,只是不要太大的数据量或者图片在里面,容易OOM