Crashed when applied Toolbar

前端 未结 3 1261
Happy的楠姐
Happy的楠姐 2021-01-05 10:06

I\'m new in Android programming. I\'m having this issue when I applied the toolbar into my app and it crashed when I try to run the app. Here is the code:

To         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-05 10:35

    You can see in your logcat output the answer:

    Do not request Window.FEATURE_ACTION_BAR, set windowActionBar to false in your theme to use a Toolbar instead.

    Also try using this link and this link

    make sure you use this:

     false 
    

    in your theme

提交回复
热议问题