1import android.app.ActionBar;
2import android.support.v7.app.AppCompatActivity;
3import android.os.Bundle;
4import android.view.Menu;
5import android.view.MenuItem;
6import android.support.v7.widget.Toolbar;
7
8
9public class rutaActivity extends AppCompactActivity {
10
11private Toolbar toolbar;
12@Override
13protected void onCreate(Bundle savedInstanceState) {
14 super.onCreate(savedInstanceState);
15 setContentView(R.layout.activity_ruta);
16
17 getSupportActionBar().hide();//Ocultar ActivityBar anterior
18
19 toolbar = (Toolbar) findViewById(R.id.app_bar);
20 setSupportActionBar(toolbar); //NO PROBLEM !!!!