I am currently making a RecyclerView with 1
header section and n
content sections.
__________________
| HEADER |
|----------------|
| CONTENT_1 |
|----------------|
| CONTENT_2 |
|----------------|
| |
| |
| |
|________________|
However sometimes, I don't have any content and I want to display a message saying "Sorry, you don't have any content right now" - or something like that. But I want that message to be centered in the remaining space.
__________________
| HEADER |
|----------------|
| |
| |
| |
| NO_CONTENT_MSG |
| |
| |
| |
|________________|
How would I go about achieving something like this? I can't seem to figure it out and so right now I am currently just using a fixed height placeholder message - something that I would rather not have.
__________________
| HEADER |
|----------------|
| NO_CONTENT_MSG |
|----------------|
| |
| |
| |
| |
| |
|________________|