How do you enable and disable toolbar button

How do you enable and disable toolbar button on the android sdk.

The SDK is using the config and you should be able to do it using the config: