Answers for "how to attach adapter to recyclerview in android"

0

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);
Posted by: Guest on July-18-2020
0

android jaca how to pass a imageurl in a recyclerview adapter

Glide.with(holder.thumbnail.getContext()).load(response.get(position).getThumbnail()).into(holder.thumbnail);
Posted by: Guest on July-22-2020

Code answers related to "how to attach adapter to recyclerview in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language