Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7864449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:47:37+00:00 2026-06-02T23:47:37+00:00

I searched a lot but couldn’t find a answer for this question: Is there

  • 0

I searched a lot but couldn’t find a answer for this question:
Is there any way to use a TitlePageIndicator below the ViewPager?

I tried the reverse order in .xml but got that:

04-24 19:30:30.288: E/AndroidRuntime(3338): FATAL EXCEPTION: main
04-24 19:30:30.288: E/AndroidRuntime(3338): java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.totvs.android/br.com.totvs.android.ecm.activity.TelaPrincipalActivity}: android.view.InflateException: Binary XML file line #9: Error inflating class fragment
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.app.ActivityThread.access$1500(ActivityThread.java:117)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.os.Handler.dispatchMessage(Handler.java:99)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.os.Looper.loop(Looper.java:130)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.app.ActivityThread.main(ActivityThread.java:3683)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at java.lang.reflect.Method.invokeNative(Native Method)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at java.lang.reflect.Method.invoke(Method.java:507)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at dalvik.system.NativeStart.main(Native Method)
04-24 19:30:30.288: E/AndroidRuntime(3338): Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class fragment
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:587)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at br.com.totvs.android.ecm.activity.TelaPrincipalActivity.onCreate(TelaPrincipalActivity.java:56)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
04-24 19:30:30.288: E/AndroidRuntime(3338):     ... 11 more
04-24 19:30:30.288: E/AndroidRuntime(3338): Caused by: java.lang.ClassCastException: com.viewpagerindicator.TitlePageIndicator
04-24 19:30:30.288: E/AndroidRuntime(3338):     at br.com.totvs.android.ecm.fragment.TabFragment.onCreateView(TabFragment.java:36)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:845)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1058)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1156)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:270)
04-24 19:30:30.288: E/AndroidRuntime(3338):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
04-24 19:30:30.288: E/AndroidRuntime(3338):     ... 18 more

Thanks in advance,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T23:47:38+00:00Added an answer on June 2, 2026 at 11:47 pm

    It probably depends on what type of TitlePageIndicator you’re using. But all of the version I’ve heard of (including probably the most popular one from Jake Wharton) are just views, which you can put anywhere you want.

    So you can just inflate such a layout:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical" >
    
        <android.support.v4.view.ViewPager
                android:id="@+id/pager"
                android:layout_width="match_parent"
                android:layout_height="0px"
                android:layout_weight="1">
        </android.support.v4.view.ViewPager>
    
    <com.viewpagerindicator.TitlePageIndicator
        android:id="@+id/titles"
        android:layout_height="wrap_content"
        android:layout_width="fill_parent" />
    
    
    
    </LinearLayout>
    

    And an extremely important note from Commonsware. Project->Clean

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hy there I searched a lot on google, but couldn't find an answer. Maybe
I searched for this a lot but couldn't find the answer. Tomcat documentation on
I searched for this a lot, but I couldn't find a solution for this
I've searched for this, but couldn't find an answer and for whatever reason I
I searched a lot but couldn't find any solution. I am probably using the
I searched a lot but couldn't find the way to measure web page loading
I searched a lot but could not find a way to dump table relations
I searched a lot but I can't find an answer. In my contact.php I
I've searched a lot within SO but I can't find the right answer for
Searched a lot about this problem but never found a answer, that solved it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.