The ActionBar shows a space on the left side of the custom view. I want to set my custom view align left of Actionbar.
I'm trying to set
getSupportActionBar().setDisplayShowTitleEnabled(false);
getSupportActionBar().setDisplayShowHomeEnabled(false);
and any other method like setLogo(null),But it's not work.
My code is like
ABCMainView actionLayout = new ABCMainView(this); //my custom view
getSupportActionBar().setDisplayShowCustomEnabled(true);
getSupportActionBar().setDisplayShowTitleEnabled(false);
getSupportActionBar().setDisplayShowHomeEnabled(false);
getSupportActionBar().setCustomView(actionLayout);
My ActionBar is android-appcompat-v21.
How can i do this?