add delegate for notify the expanded value changed

Hello @andreamazz,

in my case, i need to know when the navagationbar expanded. so i'm implement delegate to do this.