I Am trying to create an actionbar without the app logo/text, and with a centralised picture, and i know it is possible with a custom view, here is my code:
Following @furyfred answer, this code can be used when using the ActionBar
from AppCompat
library:
View homeIcon = findViewById(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB ?
android.R.id.home : android.support.v7.appcompat.R.id.home);
if (null != homeIcon && null != homeIcon.getParent())
{
((View) homeIcon.getParent()).setVisibility(View.GONE);
}