jmartinesp / SpannedGridLayoutManager

Android RecyclerView.LayoutManager that resizes and reorders views based on SpanSize
MIT License
600 stars 105 forks source link

width = match_parent #26

Closed yankelandroid closed 6 years ago

yankelandroid commented 6 years ago

How can i set a header , thats means the width = match_parent

GauthierChan commented 6 years ago

When initializing the SpannedGridLayoutManager you set the spancount. If an item, say your header, has a span width equals to the spancount then it will take the width of the RecyclerView

jmartinesp commented 6 years ago

Closing this issue as @GauthierChan's response answers the question. Thanks.