Skip to content Skip to sidebar Skip to footer

Custom Seekbar Thumb Vertical Position Issue

My custom SeekBar looks bad. Thumb's vertical position not shown correctly. I have volum_control with 350x83 pixels size and volum_control_slide with 83x83 pixels size. I put them

Solution 1:

I found solution for vertical offset. I use android:minHeight and android:maxHeight parameters. But I still donn't know how to set real Seekbar size into xml without undercutting.

<SeekBar xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/seekbar"
    android:layout_width="350px"
    android:layout_height="183dp"
    android:minHeight="75px"
    android:maxHeight="75px"
    android:progressDrawable="@drawable/volum_control"
    android:thumb="@drawable/volum_control_slide"
    android:max="100" />

enter image description here


Post a Comment for "Custom Seekbar Thumb Vertical Position Issue"