
最上面的是主题,主题下面是评论,每条评论有些有评论回复!我如何讲评论回复的内容显示在XlistView的子项中!求大神指教啊!

------解决思路----------------------
这个我用过,不过方法有点笨。。。你每个item里面都是评论的数据,在评论的item你加一个listview,用来做回复的显示。。。。这样就可以了。。。。。我做的放的是gridview。你是不是要说listview滑动时间冲突。。给你个自定义的,放里面就可以了。
public class ListviewChild extends ListView{
public ListviewChild(Context context, AttributeSet attrs) {
super(context, attrs);
// TODO Auto-generated constructor stub
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
// TODO Auto-generated method stub
int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
MeasureSpec.AT_MOST);
super.onMeasure(widthMeasureSpec, expandSpec);
}
}
------解决思路----------------------
将item中放一个layout,动态添加,有评论时,往里添加view并显示.没有时隐藏.