 <p>Instead of doing so much of work as mentioned by <a href="http://stackoverflow.com/a/26454325/1576416">Muzikant</a> and like <a href="http://stackoverflow.com/a/29058430/1576416">this answer</a></p> <pre><code> getSupportActionBar().setDisplayShowHomeEnabled(false); getSupportActionBar().setDisplayShowTitleEnabled(false); getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.WHITE)); LayoutInflater mInflater = LayoutInflater.from(this); View mCustomView = mInflater.inflate(R.layout.action_bar_home, null); getSupportActionBar().setCustomView(mCustomView); getSupportActionBar().setDisplayShowCustomEnabled(true); Toolbar parent =(Toolbar) mCustomView.getParent();//first get parent toolbar of current action bar parent.setContentInsetsAbsolute(0,0);// set padding programmatically to 0dp </code></pre> <p>You have to add only the last two lines of code to solve your problem.</p> <p>I hope this might help you and anyone else.</p> <blockquote> <p><strong>UPDATE:</strong> After making some research on it, i found that this solution will not work in some cases. The left side gap (HOME or BACK) will be removed with this but the right side gap (MENU) will remain as is. Below is the solution in these cases.</p> </blockquote> <pre><code>View v = getSupportActionBar().getCustomView(); LayoutParams lp = v.getLayoutParams(); lp.width = LayoutParams.MATCH_PARENT; v.setLayoutParams(lp); </code></pre> <p>Add these four lines to above code, so that the right side gap is also removed from support action bar. </p>