Organizational Research By

Surprising Reserch Topic

recyclerview no adapter attached skipping layout using -'android,recyclerview'


recyclerview no adapter attached skipping layout  using -'android,recyclerview'

just implemented Recyclerview in my code, replacing Listview.

everything works fine. The objects are displayed.

but logcat says


  15:25:53.476 E/RecyclerView﹕ No adapter attached; skipping layout
  
  15:25:53.655 E/RecyclerView﹕ No adapter attached; skipping layout


for the code

ArtistArrayAdapter adapter = new ArtistArrayAdapter(this, artists);
recyclerView = (RecyclerView) findViewById(R.id.cardList);
recyclerView.setHasFixedSize(true);
recyclerView.setAdapter(adapter);``
recyclerView.setLayoutManager(new LinearLayoutManager(this));


as you can see I have attached an adapter for recycleview.
so why do i keep getting this error?

i have read other questions related to same problem but none helps.
    

asked Sep 7, 2015 by rajesh
0 votes
321 views



Related Hot Questions

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

...