Lecture 5
Lecture 5
Lecture 5
Interacting with UI
components
programmatically
Interacting with UI Components Programmatically
Context in Android
RecyclerView
Outline
Interacting with UI Components Programmatically
6. In your activity or fragment, initialize the RecyclerView and set the adapter:
RecyclerView recyclerView = findViewById(R.id.recyclerView);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this);
recyclerView.setLayoutManager(layoutManager);