Change action bar title based on the selected item from drawerlayout

Answer to question : Let us change this such that when the drawer is opened we display the name of our app and
upon an item selection we display the itemÎéÎ÷s name.