Is there a way I can add a button to the top right of my ActionBar, like where the default settings Button is? I removed the settings Button
ActionBar
Button
This might be easier, however I use a toolbar instead:
@Override public boolean onOptionsItemSelected(MenuItem item) { switch(item.getItemId()) { case R.id.action_name: //your code break; } return super.onOptionsItemSelected(item); }