Created
August 15, 2016 10:29
-
-
Save ruan65/405f7b09690760cb71f1722aba3ded78 to your computer and use it in GitHub Desktop.
Back Arrow in the Action Bar override
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public boolean onOptionsItemSelected(MenuItem item) { | |
switch (item.getItemId()) { | |
case android.R.id.home: | |
Toast.makeText(getApplicationContext(),"Back button clicked", Toast.LENGTH_SHORT).show(); | |
break; | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment