Created
September 26, 2019 15:48
-
-
Save parzibyte/ce9279047a901db87ebfd69d04110ca9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Configuramos cómo se van a organizar las vistas dentro del RecyclerView; simplemente es un LinearLayout para que | |
// aparezcan una debajo de otra | |
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(MainActivity.this); | |
recyclerViewMascotas.setLayoutManager(linearLayoutManager); | |
// La línea que divide los elementos | |
recyclerViewMascotas.addItemDecoration(new DividerItemDecoration(MainActivity.this, LinearLayoutManager.VERTICAL)); | |
// El adaptador que se encarga de toda la lógica | |
recyclerViewMascotas.setAdapter(adaptadorRecyclerView); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment