An “up” icon appears on the action bar (left):

In my Activity method, onCreate()I installed the following things:
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setDisplayShowHomeEnabled(true);
My question is:
How can I implement onClickListener“tolerance” on this icon so that when the user clicks on it, the application will go to the top-level hierarchy ?
How can I use only the left arrow without the default icon for Android in the "tolerance" section of the action bar?
source
share