I am trying to add vertical progressbar in Android. I can add horizontal progressbar but I can't able to do it for vertical. I tried to change style="?android:attr/progressBarStyleHorizontal" to style="?android:attr/progressBarStyleVertical" and it gives error.
So how to add vertical progressbar in Android? It can't be hard, I suppose. However I couldn't solve it :)
HorizontalProgressBar works as expected
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ProgressBar
android:id="@+id/progressBar1"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" />
</RelativeLayout>
VerticalProgressBar gives error
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ProgressBar
android:id="@+id/progressBar1"
style="?android:attr/progressBarStyleVertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" />
</RelativeLayout>
Note: I am trying to create vertical progressbar like this: https://i.stack.imgur.com/hyDxO.jpg
Note 2: I suppose Android DOES NOT SUPPORT vertical progressbar and it seems still does not support: https://stackoverflow.com/a/3926520/4606368