Crashed when applied Toolbar

前端 未结 3 1239
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:55

    If you use Toolbar from v7-support, you should use Theme.AppCombat in your Activity.

    Define your style in styles.xml

    
    #000000
    

    And apply it to whole application (or specyfic Activity) in AndroidManifest.xml

    
    

提交回复
热议问题