Android Create an event calendar user interface. What components should be used?

I am working on an event app. I want to add calendar activity with columns as room, rows as time, and cells as attraction. I tried using Android Week View , but it has some limitations (columns like day, cannot set a maximum / minimum date), and therefore I can not use it.

I am going to do something like this: goal

I think how can I do this. Building from scratch using the View class is too hard for me (and I think there is a better idea). So can you tell me which component I could use? TableView, RecyclerView? I am looking for a solution with only 4 rooms visible (on smartphones), but when scrolling horizontally you can show more.

+6
source share
1 answer

Use RecyclerView with GridLayoutManager .

It would just add a RecyclerView to your xml and in java code just say

 GridLayoutManager lLayout = new GridLayoutManager(MainActivity.this, NO_OF_COLUMNS); RecyclerView rView = (RecyclerView)findViewById(R.id.recycler_view); rView.setHasFixedSize(true); rView.setLayoutManager(lLayout); RecyclerViewAdapter rcAdapter = new RecyclerViewAdapter(MainActivity.this, rowListItem); rView.setAdapter(rcAdapter); 
+1
source

All Articles