I watched a tutorial on how to create a custom Toolbar in Android Studio and I saw that I must change Theme.MaterialComponents.DayNight.DarkActionBar to Theme.AppCompat.Light.NoActionBar. I tried to do it and after running an app it showed only a splash screen and then it crashed. Please, someone, help me.
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
2
Answers
Theme.AppCompat.Light.NoActionBar, No action bar means tool bar cant be created.
Change NoActionBar to LightActionBar or anything else you prefer. then customise the tool bar as you wish to
Try that
Instead of Theme.MaterialComponents.DayNight.DarkActionBar