0
Good night.
I updated my Android Studio
for version 1.4 and by default, any activity
used as an inheritance to AppCompatActivity
(public class MainActivity extends AppCompatActivity)
. I developed an app that needs to inherit a class responsible for controlling the life cycle of each activity
as in the following example: public class MainActivity extends LifeCycleActivity
. The problem is that in doing so, the name of the project does not appear on toolbar
when running the app. Like updating Android Studio
brought two layouts (content_main.xml
and activity_main.xml
) for each activity
, I wonder if I solve the problem of displaying the project name in the toolbar
through the layout files themselves, or through code, since I am not using as inheritance the AppCompatActivity
.
Do
LifeCycleActivity
inherit fromAppCompatActivity
.– ramaral