android - Toolbar: changing menu items and background and items color -


in application want toolbar behave in google applications.

in apps, when select items list, toolbar changes it's menu items, , changes it's color , statusbar color. followed animation.

toolbar color change

i know best way of doing that. maybe there official api, or library?

here thoughts:

  1. having 2 sets of menu items , manually adding/removing or showing/hiding them, , changing toolbar color property animator

  2. having 2 toolbars @ same position, , replacing them when needed. (you can see on .gif image toolbar's title's margin changes, there 2 toolbars)

  3. ?

it called action mode. used show options specific operation.

have @ link creating contextual menus.


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -