yThread: handleWindowVisibility: no activity for token android.os.BinderProxy@4f309b8 E/RecyclerView: No adapter attached; skipping layout code example

Example: RecyclerView: No layout manager attached; skipping layout

You need to set layout manager
Kotlin:
val linearLayoutManager:LinearLayoutManager = LinearLayoutManager(this)
linearLayoutManager.orientation = LinearLayoutManager.HORIZONTAL{or VERTICAL}
recycleView.layoutManager = linearLayoutManager
Java:
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
linearLayoutManager.setOrientation(LinearLayoutManager.HORIZONTAL{or VERTICAL});
list.setLayoutManager(linearLayoutManager);

Tags:

Java Example