New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android.view.InflateException: Binary XML file line #2: Error inflating class <unknown> #73
Comments
@jimok82 do you use the default layout implementation without any custom layout? |
have this problem too |
@alex-soft-r do you have any special drawer implementation? |
im found problem |
@alex-soft-r @jimok82 so you both don't use the provided theme? |
my theme is "parent="Theme.AppCompat.Light.DarkActionBar">" |
Yeah i see. If you use the provided theme (the MaterialDrawer.* themes) then it will work. |
@alex-soft-r @jimok82 if you don't use the provided theme. or don't want to use / don't like to use you have to add following attributes to your style: <!-- MaterialDrawer specific values -->
<item name="material_drawer_window_background">@color/material_drawer_window_background</item>
<item name="material_drawer_background">@color/material_drawer_background</item>
<item name="material_drawer_icons">@color/material_drawer_icons</item>
<item name="material_drawer_primary_text">@color/material_drawer_primary_text</item>
<item name="material_drawer_secondary_text">@color/material_drawer_secondary_text</item>
<item name="material_drawer_hint_text">@color/material_drawer_hint_text</item>
<item name="material_drawer_divider">@color/material_drawer_divider</item>
<item name="material_drawer_selected">@color/material_drawer_selected</item>
<item name="material_drawer_selected_text">@color/material_drawer_selected_text</item>
<item name="material_drawer_header_selection_text">@color/material_drawer_icons</item> |
@mikepenz - im confirm, all work ;) thanks |
@alex-soft-r thanks for help. i've added a note about this to the README.md |
It doesn't work with |
Version 2.0 no-longer works for me, whereas version 1.0.2 worked normally:
Looks like there is an issue inflating R.layout.material_drawer_slider
Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class
at android.view.LayoutInflater.createView(LayoutInflater.java:633)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:55)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
at android.view.LayoutInflater.inflate(LayoutInflater.java:482)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at com.mikepenz.materialdrawer.Drawer.a(Drawer.java:743)
The text was updated successfully, but these errors were encountered: