android - Enable toolbar button only during live card display -


in glass application, display button on toolbar. button shows on/off state of camera , lets user toggle state.

the problem running glass moves focus button. result, tap keeps activating button.

it seems glass automatically converts toolbar menu items live cards when top-to-bottom swing used. nice. gives users ability select menu item.

i thinking if set default state of button "disabled," solve problem. however, results in disabling button in live cards. enable button during live cards.

is there way achieve this? or, there better way remove focus out of toolbar? regards.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -