When initializing RecicleView and loading values ​​into the adapter, this view is created.

while creating

And when scrolling happens, the items expand.

enter image description here

The first two points widened and flew up. How to fix this bug? fill it up so

sessia = new ArrayList<>(); if (var.portalSessias[pos].length>0) { for (int i = 0; i < var.portalSessias[pos].length; i++) { sessia.add(new Person(var.portalSessias[pos][i].discipline, R.drawable.books_32)); } } sessia_card.setAdapter(null); sessia_adpater = new RVAdapter(sessia); llm3 = new LinearLayoutManager(getContext()); sessia_card.setLayoutManager(llm3); sessia_card.setHasFixedSize(true); sessia_card.setAdapter(sessia_adpater); 
  • Does it happen every time, or how? - Rasul A-s
  • Show the adapter code and xml data layout. - eugeneek

0