android.view.InflateException: Binary XML file line #1: Error inflating class <unknown>

空扰寡人 提交于 2019-12-04 04:04:24

Then you add ActionBarCompat to google's Navigation Drawer sample do not forget change native methods to SupportMethods: getActionBar() -> getSupportActionBar(); invalidateOptionsMenu() -> supportInvalidateOptionsMenu(); ...

and remove from drawer_list_item.xml and others attributes "?android:attr/..." that work only with API 14+

This great tutorial by Gabriele Mariotti must help you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!