Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. // Configuramos cómo se van a organizar las vistas dentro del RecyclerView; simplemente es un LinearLayout para que
  2. // aparezcan una debajo de otra
  3. LinearLayoutManager linearLayoutManager = new LinearLayoutManager(MainActivity.this);
  4. recyclerViewMascotas.setLayoutManager(linearLayoutManager);
  5. // La línea que divide los elementos
  6. recyclerViewMascotas.addItemDecoration(new DividerItemDecoration(MainActivity.this, LinearLayoutManager.VERTICAL));
  7. // El adaptador que se encarga de toda la lógica
  8. recyclerViewMascotas.setAdapter(adaptadorRecyclerView);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement