java - Error inflating class error when eclipse to Android Studio -
i have moved eclipse project android studio. , used of eclipse jar files in gradle. navigation using blur navigation drawer , app built on it. problem in new android studio project im getting error starting following line.
android.view.inflateexception: binary xml file line #2: binary xml file line #2: error inflating class com.charbgr.blurnavigationdrawer.v7.blurdrawerlayout
since im new android dont understand reason behind it. have spent more 3 days on this. looking now.
activity class : -
private navigationdrawerfragment mnavigationdrawerfragment; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.navigation_drawer_main_activity); fragment fragment = new calendarmainactivity(); fragmentmanager fragmentmanager = getsupportfragmentmanager(); fragmentmanager.begintransaction().replace(r.id.container, fragment) .commit(); mnavigationdrawerfragment = (navigationdrawerfragment) getsupportfragmentmanager() .findfragmentbyid(r.id.navigation_drawer); // set drawer. mnavigationdrawerfragment.setup(r.id.navigation_drawer, (drawerlayout) findviewbyid(r.id.drawer_layout)); restoreactionbar(); }
layout :-
<!-- drawerlayout intended used top-level content view using match_parent both width , height consume full space available. --> <com.charbgr.blurnavigationdrawer.v7.blurdrawerlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" app:blurradius="19" app:closedescription="@string/navigation_drawer_close" app:downscalefactor="0.0" app:drawerupimageid="@drawable/ic_menu" app:opendescription="@string/navigation_drawer_open" tools:context=".navigationdrawerfragmentmainactivity">
gradle file :-
dependencies { compile filetree(include: ['*.jar'], dir: 'libs') androidtestcompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:24.0.0' testcompile 'junit:junit:4.12' compile 'com.googlecode.android-query:android-query:0.25.9' compile 'com.j256.ormlite:ormlite-android:4.45' compile 'com.joanzapata.pdfview:android-pdfview:1.0.4@aar' compile 'com.loopj.android:android-async-http:1.4.4' compile files('libs/main.jar') // contains blur navigation compile files('libs/library.jar') compile files('libs/date4j.jar') }
Comments
Post a Comment