0
I was watching a video class of a guy who was using Android Studio version 1.3. As much is generated, he was just taking away what was not necessary. I was doing this process, but I realized that the result in 1.5.1, which is the version of the ide I use looks different.
What happens is that his example lacked the last two lines of code:
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
His example, using version 1.3 without the two lines above worked as it is in the emulator, but in 1.5.1 without these lines the name of the project, which is Agenda is no longer displayed.
Could someone explain to me why we have this difference?
To
Activity
of it extendedAppCompatActivity
also?– Pablo Almeida
Also.. They just changed these lines
– mila
These two lines define the layout of the
ActionBar
programmatically. If his is working without it, it might be some theme setting.– Pablo Almeida