after updating to the new
com.android.support:design:22.2.0
I got this error:
"attribute insetForeground has already be defined"
keep in mind that i'm using @romannurik ScrimInsetsFrameLayout.java
just change
insetForeground attribute
in your attrs.xml
to a different name
To elaborate on Omar's answer,
The Android design support library introduced NavigationDrawer that is used together with DrawerLayout to provide means of implementing navigation etc. See here:
Android Design Support Library
The NavigationDrawer extends ScrimInsetsFrameLayout which was brought into the library.
The error in the question occurs because the insetForeground attribute was defined twice. Once is the context of the library and once when a copy of ScrimInsetsFrameLayout was brought into the project.
Options:
You have this class ScrimInsetsFrameLayout.java
in your files whereas Google already put this in the Google Android Support Design Library. Replace the ScrimInsetsFrameLayout
into android.support.design.widget.NavigationView
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With