答案 0 :(得分:-1)
我可以看到你的ListView Adapter类吗?
在适配器类的Override方法中实例化您的布局。
@Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder holder; //instantiate your view
View v;
if(/*your condition*/){
v =LayoutInflater.from(Context).inflate(R.id.yourlayout,null,false);
holder = new ViewHolder();
//do your stuffs
}
}
private static class ViewHolder {
//declare your view here..
}