Action-Bar-AppCompat

The following code useful for those who are using action bar Appcompat library