Setting the following: the home icon shows the state of pressing:
actionBar.setHomeButtonEnabled(true);
But after installing OnClickListener, the home icon stops showing the click state:
ImageView iconImage = (ImageView) activity.findViewById(android.R.id.home); iconImage.setOnClickListener(new android.view.View.OnClickListener() { @Override public void onClick(View v) { } });
Any idea on how to prevent a blackout?
source share