skip to Main Content

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.

2

Answers


  1. 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

    Login or Signup to reply.
  2. Try that
        

    Theme.Material3.DayNight.NoActionBar
    

    Instead of Theme.MaterialComponents.DayNight.DarkActionBar

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search