getLayoutInflater () en fragmento
Estoy tratando de mostrar mi búsqueda de resultados en unListView
sobre elFragment
, pero falla en:
LayoutInflater inflater = getLayoutInflater();
El método getLayoutInflater (Bundle) en el tipo Fragment no es aplicable para los argumentos ()
Este es mi código:
public View getView(int position, View convertView, ViewGroup parent)
{
LayoutInflater inflater = getLayoutInflater();
View row;
row = inflater.inflate(R.layout.list_single, parent, false);
TextView textview = (TextView) row.findViewById(R.id.TextView01);
ImageView imageview = (ImageView) row
.findViewById(R.id.ImageView01);
textview.setText(data_text[position]);
imageview.setImageResource(data_image[position]);
return (row);
}
¿Cómo puedo arreglar esto?