MiguelCatalan / MaterialSearchView

Cute library to implement SearchView in a Material Design Approach
http://miguelcatalan.info/2015/09/23/MaterialSearchView/
Apache License 2.0
3.83k stars 616 forks source link

Inflate exception when override background in app theme #204

Open SiiTP opened 6 years ago

SiiTP commented 6 years ago

Caused by: android.view.InflateException: Binary XML file line #39: Error inflating class com.miguelcatalan.materialsearchview.MaterialSearchView at android.view.LayoutInflater.createView(LayoutInflater.java:620) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) at android.view.LayoutInflater.inflate(LayoutInflater.java:492) at android.view.LayoutInflater.inflate(LayoutInflater.java:397) at android.view.LayoutInflater.inflate(LayoutInflater.java:353) at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139) at android.databinding.DataBindingUtil.setContentView(DataBindingUtil.java:276) at android.databinding.DataBindingUtil.setContentView(DataBindingUtil.java:261) at com.myapp.activities.DrawerActivity.onCreate(DrawerActivity.kt:52) at android.app.Activity.performCreate(Activity.java:5133) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2230)

I got this exception when add `

@color/green

` in my styles.xml. Android 4.3.

Bertkiing commented 6 years ago

I also meet the question... please help me...