softwaresupply
softwaresupply

Reputation: 1948

Changing the style of a progressbar

I have loaded a progressBar from:

<?xml version="1.0" encoding="utf-8"?>
<ProgressBar xmlns:android="http://schemas.android.com/apk/res/android"
 android:id="@+android:id/progress_small" style="?android:attr/progressBarStyleLarge"
 android:layout_width="wrap_content" android:layout_height="wrap_content" />

On different devices I get different visualization. I want the progressbar on every device and every android version look rounded and not being built by some short liney only.

Is there a way to force this? Thanks so far

Upvotes: 1

Views: 15878

Answers (2)

Ganesh Bhat
Ganesh Bhat

Reputation: 243

There is no need to create custom progress bar,

I created a sample project to demonstrate how to skin the Progress bar. Please take a look at it/

https://github.com/gansBhat/AndroidProjects/tree/master/Examples/CustomThinProgressBar

Same has been uploaded to google drive https://drive.google.com/folderview?id=0BxHClVwHSqq5dVRvT1Qyd0hYN0k&usp=sharing

Let me know if you face some issue.

Upvotes: 0

Peter Knego
Peter Knego

Reputation: 80340

You need to create a custom ProgressBar. Check out previous questions.

Also check this examples here, here.

This example is without coding: http://majaxandroidtips.blogspot.com/2009/06/how-to-create-custom-progress-bar.html

Upvotes: 6

Related Questions