0

I'm trying to implement android-viewflow application developed by Patrik Akerfeldt. The source code is here: https://github.com/pakerfeldt/android-viewflow

I've added "view-flow" folder as a library project and referenced it in my application. When I want to use "org.taptwo.android.widget.TitleFlowIndicator", the compiler gives the following error:

"Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class org.taptwo.android.widget.TitleFlowIndicator"

Here this is .xml file:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res/com.alperen.osman.deneme"
    android:orientation="vertical" android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <LinearLayout android:layout_width="fill_parent"
        android:gravity="center_horizontal" android:id="@+id/header_layout"
        android:orientation="vertical" android:layout_height="wrap_content">

        <org.taptwo.android.widget.TitleFlowIndicator
            android:id="@+id/viewflowindic" android:layout_height="wrap_content"
            android:layout_width="fill_parent"
            app:footerLineHeight="2dp"
            app:customTypeface="fonts/Antic.ttf"
            app:footerTriangleHeight="10dp" app:textColor="#FFFFFFFF" app:selectedColor="#FFFFC445" app:footerColor="#FFFFC445" 
            app:titlePadding="10dp" app:textSize="11dp" app:selectedSize="12dp" android:layout_marginTop="10dip" app:clipPadding="5dp">
        </org.taptwo.android.widget.TitleFlowIndicator>

    </LinearLayout>
    <org.taptwo.android.widget.ViewFlow
        android:duplicateParentState="true" android:id="@+id/viewflow"
        android:layout_width="fill_parent" android:layout_height="fill_parent"></org.taptwo.android.widget.ViewFlow>
</LinearLayout>

This widget is used in .java code as below:

...

        TitleFlowIndicator indicator = (TitleFlowIndicator) findViewById(R.id.viewflowindic);
        indicator.setTitleProvider(adapter);
        viewFlow.setFlowIndicator(indicator);

...

What am I missing here? Any help would be greatly appreciated. Thanks

4
  • Use adb logcat, DDMS, or the LogCat view in Eclipse to examine LogCat and look at the full stack trace associated with your error. Commented Mar 11, 2012 at 13:16
  • I've already used logcat DDMS and examined the full stack trace of the error. Then I posted this issue. Commented Mar 11, 2012 at 13:31
  • "I've already used logcat DDMS and examined the full stack trace of the error" -- if you had, you would have found the actual exception, rather than the one you pasted. The one you pasted basically says "we had a problem -- keep reading to find the actual exception". Commented Mar 11, 2012 at 14:11
  • it might be helpful to see the full stack trace of the error Commented Mar 11, 2012 at 14:33

1 Answer 1

1

try to remove this line :

app:customTypeface="fonts/Antic.ttf"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.