ListView + ArrayList + AsyncTask

This question already has an answer here:

  • What is a NullPointerException, and how do I fix it? 12 answers

  • Comment  
    

    This probably means your first textview is not in this xml file

    servicio.xml

    does not have a textview with an id of titulo

     holder.nombre = (TextView) convertView.findViewById(R.id.titulo);
    

    hence the nullpointer

    double check that you are calling the correct textview with the correct id in the correct xml

    链接地址: http://www.djcxy.com/p/84724.html

    上一篇: 片段中用于gridview的Android文本和图像适配器

    下一篇: ListView + ArrayList + AsyncTask