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 8957329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:57:55+00:00 2026-06-15T14:57:55+00:00

I have a viewpager that uses a PagerTabStrip to indicate the current page. However,

  • 0

I have a viewpager that uses a PagerTabStrip to indicate the current page.
However, I don’t want the default indicator to be present. (Underline underneath the page title)

I’ve tried a few different methods to remove it, but none of them seem to work.

PagerTabStrip pts = (PagerTabStrip) findViewById(R.id.pager_title_strip);
pts.setTabIndicatorColor(getResources().getColor(android.R.color.transparent));

also

PagerTabStrip pts = (PagerTabStrip) findViewById(R.id.pager_title_strip);
pts.setTabIndicatorColor(Color.parseColor(“#80000000”));

and

PagerTabStrip pts = (PagerTabStrip) findViewById(R.id.pager_title_strip);
pts.setTabIndicatorColor(Color.TRANSPARENT);

None of these seems to work. Instead it gives me a black indicator instead.
Any help would be appreciated. THanks!

  • 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-15T14:57:56+00:00Added an answer on June 15, 2026 at 2:57 pm

    By looking at the source of PagerTabStrip. I have found the following method:

    /**
     * Set whether this tab strip should draw a full-width underline in the
     * current tab indicator color.
     *
     * @param drawFull true to draw a full-width underline, false otherwise
     */
    public void setDrawFullUnderline(boolean drawFull) {
        mDrawFullUnderline = drawFull;
        mDrawFullUnderlineSet = true;
        invalidate();
    }
    

    I have not tested this, but I suppose this should work. Leave a comment if it doesn’t.

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

Sidebar

Related Questions

I have a ViewPager that uses ListFragments on each page. I implement onListItemClick and
I have an app that uses ActionBarSherlock to provide a ViewPager control for tab
My app uses the android.support.v4.view.ViewPager class. For each page in the ViewPager, I want
I have viewPager with several views. the default behavior of viewPager is that the
Hi, I have created an app that uses ViewPager and all pages contain WebViews.
I have created an android app that uses a ViewPager to swipe through three
I have a simple ViewPager example that just places a TextView with the current
I have created an activity that uses FragmentStatePagerAdapter to provide small gallery. However, I
I have an application which uses ViewPager. Inside the ViewPager I don't use Fragments,
I have in main.xml TitlePageIndicator and ViewPager, and I want to add admob (right

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.