no entendi muy bien tu pregunta pero si no sabes bien como usar un ToolBar, ahi te va una ayudadita:
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater ().inflate ( R.menu.menu_toolbar, menu );
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId ();
//noinspection SimplifiableIfStatement
if (id == R.id.Cerrar) {
fondo= new Fondo ();
getSupportFragmentManager ().beginTransaction ().add ( R.id.content_main, fondo ).commit ();
return true;
}
if(id==R.id.Scan){
Intent intent = new Intent (getBaseContext (), Scanner.class);
startActivity(intent);
}
return super.onOptionsItemSelected ( item );
}
// </editor-fold>

Dato:
Recuerda que el android actual te trae ayuda, así es que es mas fácil de hacerlo, de otra manera los tutoriales son de mucha ayuda :)