The RecyclerView itself is sometimes not laid out properly, so getWidth() will return 0. Using getMeasuredWidth instead will return the proper size, so the headers will be laid out properly and show up. Fixes https://github.com/edubarr/header-decor/issues/45
The RecyclerView itself is sometimes not laid out properly, so getWidth() will return 0. Using getMeasuredWidth instead will return the proper size, so the headers will be laid out properly and show up. Fixes https://github.com/edubarr/header-decor/issues/45