luizgrp / SectionedRecyclerViewAdapter

An Adapter that allows a RecyclerView to be split into Sections with headers and/or footers. Each Section can have its state controlled individually.
MIT License
1.68k stars 372 forks source link

How to obtain position the position of the head? #18

Closed HotBitmapGG closed 7 years ago

HotBitmapGG commented 7 years ago

Hi,How can I get the head position location, I need to get the location of the head of each section of the position Then call RecyclerView. SmoothScrollToPosition () to jump to the corresponding position

luizgrp commented 7 years ago

Hi, method getSectionPosition(tag) was added in the library version 1.0.5 in order to get the position of the sector in the adapter. An example using smoothScrollToPosition was also added here. Please let me know if that helps!