Search code examples
androidandroid-widgetseekbarandroid-4.0-ice-cream-sandwich

Seekbar with Android 4.0 style


I know that it is possible to change the style of any widget in android. However, i have try with the Seekbar. I want to have seek bar like android 4.0 have. My app is running in android 2.2 and i want to show seekbar like Android 4.0.

So, what should to change?

I have try with below code:

 <style name="seekbarStyle" parent="android:Widget.SeekBar">
    <item name="android:indeterminateOnly">false</item>
    <item name="android:progressDrawable">@android:drawable/progress_horizontal</item>
    <item name="android:indeterminateDrawable">@android:drawable/progress_horizontal</item>
    <item name="android:minHeight">20dip</item>
    <item name="android:maxHeight">20dip</item>
    <item name="android:thumb">@android:drawable/seek_thumb</item>
    <item name="android:thumbOffset">8dip</item>
    <item name="android:focusable">true</item>

</style>

Please help me. I want seekbar style to look like android 4.0 in all device.


Solution

  • You can use HoloEverywhere library which allows to use Holo themes on Android 2.x

    https://github.com/prototik/HoloEverywhere