saket / InboxRecyclerView

Build expandable descendant navigation, inspired by Google Inbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to use UUID instead of long value when expanding

SiegfredRodriguez opened this issue · comments

Hi, i've been using your recyclerview, it's very nice, but it would be nice to be able to expand by using UUID instead long, some of my data have unique id's using UUID.

Changing the type is unfortunately not an option. InboxRecyclerView uses whatever type RecyclerView.Adapter#getId() enforces us to use. When you supply an ID to expandItem(Long), it is later uses to fetch the item's information from the adapter. This is also why you're required to override getItemId() and call setHasStableIds(true) on your adapter.

Using IDs of type other than longs is a general practice and you'll have to find to construct Longs out of them.

Closing this due to inactivity. Feel free to re-open this.