Ver Mensaje Individual
  #8  
Viejo 16/11/15, 12:25:57
Array

[xs_avatar]
Merche300 Merche300 no está en línea
Betatester oficial
 
Fecha de registro: dic 2008
Localización: Valencia
Mensajes: 625
Modelo de smartphone: NEXUS 5 - ONEPLUS 3
Tu operador: Pepephone
Pues nada, asi se queda igual:

ListView listView = (ListView) view.findViewById(R.id.list);

11-16 12:25:02.317 8083-8083/com.rafelcf E/AndroidRuntime: FATAL EXCEPTION: main
11-16 12:25:02.317 8083-8083/com.rafelcf E/AndroidRuntime: Process: com.rafelcf, PID: 8083
11-16 12:25:02.317 8083-8083/com.rafelcf E/AndroidRuntime: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'

ARREGLADO
Pues resulta que así funciona, por si surge alguien con mi problema.

ListView listView = (ListView) view.findViewById(android.R.id.list);

<ListView
android:id="@+id/android:list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:listitem="@layout/row" >

Muchas gracias a @kriogeN y a @Dexafree por vuestro tiempo.

Última edición por Merche300 Día 16/11/15 a las 12:47:44. Razón: Solucion
Responder Con Cita