Fatal Exception: Main / Android.view.inflateexception
Solution 1:
I have the same problem but i figured out that the solution very simple if you are following this link like me you have to delete this part [jakewharton.android] from your main layout refering to link main layout this what causing inflateException and make it just like what your viewPagerIndicator library package name
<?xml version="1.0" encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="fill_parent"><com.viewpagerindicator.TitlePageIndicatorandroid:id="@+id/indicator"android:layout_width="fill_parent"android:layout_height="wrap_content" /><android.support.v4.view.ViewPagerandroid:id="@+id/viewpager"android:layout_width="fill_parent"android:layout_height="wrap_content"android:layout_weight="1" /></LinearLayout>
Solution 2:
I don't believe that you are either importing or linking the library correctly.
Here is a post that shows an easy example of how to import a similar type lib and link it up.
using-the-johannilsson-android-actionbar-library
I have made a view pager myself, but did not end up using this library. Instead I used the android support package. It works much better for me because I do not have to import the entire package, I just have to link the lib.
Post a Comment for "Fatal Exception: Main / Android.view.inflateexception"