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' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -