Error inflating class android.support.v7.widget.Toolbar

后端 未结 1 476
后悔当初
后悔当初 2021-01-13 03:29

I have moved my app from using actionbar to toolbar however end up with the error (full error at bottom). My code:

My Activity:

public class MapsActi         


        
相关标签:
1条回答
  • 2021-01-13 03:41

    replace your parent theme to @style/Theme.AppCompat.NoActionBar

    <style name="AppTheme" parent="@style/Theme.AppCompat.NoActionBar">
       <item name="windowActionBar">false</item>
       <item name="android:windowNoTitle">true</item>
    </style>
    
    0 讨论(0)
提交回复
热议问题