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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:33:45+00:00 2026-06-17T02:33:45+00:00

I have included a progress bar in each of my Action Bar tabs using

  • 0

I have included a progress bar in each of my Action Bar tabs using a custom view. I would like the width of the progress bar to match the width of the tab indicator. However, the area covered by the custom view has margins set within the tab, so I’m unable to extend the progress bar to the full tab width. What’s the best way to make this work?

Below is what it looks like now…

progress bar in tab

The progress bar is set to match the parent width.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_margin="0dp"
>
        <TextView xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/tab_title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text = "Day 1"
        android:textAllCaps="true"
        android:textStyle="bold"
        android:textSize="13dp"
        android:layout_gravity="center"
        android:gravity="center"
        android:paddingTop="18dp"
        />

        <ProgressBar 
            style="@android:style/Widget.Holo.ProgressBar.Horizontal"
            android:id="@+id/tab_progress"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_marginBottom="1dp"
            />

</RelativeLayout>
  • 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-17T02:33:46+00:00Added an answer on June 17, 2026 at 2:33 am

    The solution was to implement a custom theme for androidActionBarTabStyle. This is the contained for the view defined when using setCustomView One thing I ran into is that when creating a style as a theme, it must be prefixed by Theme, for example: Theme.MyTheme

    If you do not include the Theme. prefix, your theme won’t be applied.

    Within the style file I defined this style:

    <style name="withProgress" parent="@android:style/Widget.Holo.Light.ActionBar.TabView.Inverse">
        <item name="android:padding">0dp</item>
    </style>
    

    And then in the theme.

    <item name="android:actionBarTabStyle">@style/withProgress</item>

    As it turned out, it looks pretty bad, but in case anyone is looking for something similar, that’s how it’s done.

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

Sidebar

Related Questions

I have included Django comments framework in my project, and added custom templates to
I have included numerous coldfusion and html files in CFM pages using the <cfinclude>
I have a rails module included for reference below that I have included using
I used to have my progress view controller in my current project. Then I
I have a custom view that extends ViewGroup . It includes a ProgressBar and
I would like to implement a jquery blockUI to popup and show a progress
I have managed to use an Asynctask with an indeterminate progress bar during screen
I have included 4 buttons inside a panel. The panel is docked to the
I have included CFNetwork.framework in my app. And later when not required i just
I have included Zend_Form_Element_Hash into a form multiplecheckbox form. I have jQuery set to

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.