dvdciri / dvdciri/MultiChoiceRecyclerView

Need a way to restore original toolbar's icon / text

Open
#32 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
349
Forks
68
PR merge metrics
No merged PRs in 30d

Description

I'm using the new version 2.0.0 and `MultiChoiceToolbar`. Here I need to set an icon and text because it's removed otherwise when the selection is "aborted".

Because I'm using a `NavigationDrawer` I have the nice [hamburger icon](https://material.io/icons/#ic_menu) but normally it's animated when the drawer is slided. Even when setting the same icon (which I then need to include) the icon looks the same but is no longer animated.

Plus, I'm using the `RecyclerView` in a `Fragment` in an `Activity` and the latter is in charge of the toolbar. This works but I need to get the toolbar-title from the activity again.

---

It would be great, when the lib would store the previous values for icon / text before "replacing the toolbar" (change those values). When "reverting" to the normal state (not selected any more) the old values should be applied again. This would give us some kind of "toggle" like using the legacy `ActionMode`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.