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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -