Title page indicator not found

431 views
Skip to first unread message

Dandre Allison

unread,
Mar 21, 2012, 6:51:07 PM3/21/12
to actionba...@googlegroups.com
I can't seem to get TitlePageIndicator to be resolved. I have the support lib and viewpagerindicator dependencies in the project. Neither IDEA nor maven are resolving android.support.v4.view.TitlePageIndicator.
pom.xml
CalendarDayActivity.java

Jake Wharton

unread,
Mar 21, 2012, 6:59:43 PM3/21/12
to actionba...@googlegroups.com

It's in `com.viewpagerindicator`.

Dandre Allison

unread,
Mar 23, 2012, 1:41:02 PM3/23/12
to actionba...@googlegroups.com
I see, I was looking at the roboguice example again. I realized that I hadn't dropped the -RC1. I followed the pom for including the v4 library and creating the RoboSherlockActivity. Then I followed that design for making a RoboSherlockFragmentActivity, but now in my classes that extend that I'm getting
java.lang.NoSuchMethodException: ActionBarSherlockCompat(Activity,int)
It is triggering on getSupportActionBar() and setContentView(..). I'm wondering if it requires a change in the proguard, since it was working before the change to 4.0.0 and changing to RoboSherlockFragmentActivity got the IDE to find getSupportActionBar again. 

Dandre Allison

unread,
Mar 23, 2012, 6:56:12 PM3/23/12
to actionba...@googlegroups.com
Thanks, I thought I tried that, but I reverted back to RC1 because I have that working. I see the TitleBarIndicator line now, but no title, I even have getTitle(int) { return "title"; }. Other than that, and getting the views in the ViewGroup to move, I almost have the infinite pagination set up. I'm looking at your ViewPagerIndicator samples and Electricsleep, and I can't figure out what I'm missing.


On Wednesday, March 21, 2012 3:59:43 PM UTC-7, Jake Wharton wrote:

Dandre Allison

unread,
Mar 26, 2012, 1:41:52 PM3/26/12
to actionba...@googlegroups.com
I see, so the default text color I guess is white, because once I figured out how to style the title bar indicator, I found the titles. I figured it would be defaulting to my default text color; I'm using the Holo.Light theme.

Pushpanjali Gangane

unread,
Nov 7, 2012, 5:33:23 AM11/7/12
to actionba...@googlegroups.com
i m getting ArrayIndexOutOfBound exception in TitlepageIndicator file at 
 //Verify if the current view must be clipped to the screen
        Rect curPageBound = bounds.get(mCurrentPage);
        float curPageWidth = curPageBound.right - curPageBound.left;
        if (curPageBound.left < leftClip) {
            //Try to clip to the screen (left side)
            clipViewOnTheLeft(curPageBound, curPageWidth, left);
        }

at  clipViewOnTheLeft(curPageBound, curPageWidth, left); i m getting that exception please give me solution.
Thanks in advance.
Reply all
Reply to author
Forward
0 new messages