Johan
Johan

Reputation: 35194

Thin progress bar in action bar

I'm looking for any code samples containing a thin progress bar at the top of the screen, similar to this.

All I can find is info about the "regular" progress bar:

enter image description here

What is the thin blue progress bar called in my link?

Upvotes: 2

Views: 989

Answers (3)

Manan Dhawan
Manan Dhawan

Reputation: 108

You can also get the progress bar for lower Android versions using ActionBarSherlock.

The link for the source code: http://actionbarsherlock.com/download.html

In the zip file, go to actionbarsherlock-samples -> demos. You will get the code in "Progress.java" in the src folder.

Upvotes: 0

bostan
bostan

Reputation: 375

To make it thin just give your progress bar a static height eg: android:layout_height="4dp"

Upvotes: 2

Alex Zaitsev
Alex Zaitsev

Reputation: 1781

It is usual for new Android versions horizontal Progress Bar:

<ProgressBar
     style="@android:style/Widget.ProgressBar.Horizontal"
     ... />

Here is example of customization

Upvotes: 1

Related Questions