When you inherit from any Activity class of the GreenDroid library, you can override the action bar items of the action bar by overriding the method onHandleActionBarItemClick().

Check the sample code below.

The code above uses the parameter position to indicate the index position of the action bar item that you added on the right side of the action bar. If you want to specifically point to the action bar’s id, use the item parameter instead using item.getItemId() as the parameter in the switch area.

The “default” points to the home button (located on the left most).

Related Posts Plugin for WordPress, Blogger...