Using custom view in action bar to enable a smooth transition.