How to make app icon as up enabled in actionbarsherlock (not the title only icon) like in whats app.
Add the following to your onCreate
method:
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
and define the following override method in your activity:
@Override
public boolean onOptionsItemSelected(com.actionbarsherlock.view.MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
onBackPressed();
break;
default:
return super.onOptionsItemSelected(item);
}
return true;
}