android - Custom seekbar has a gap between thumb and progress -


i have created own custom styling vertical seekbar, there small gap between thumb , progress part of seekbar shown here: http://i.imgur.com/gngnupb.png?1

even more interesting though further drag thumb smaller gap becomes until 50% - 60% full when disappears: http://i.imgur.com/6r0e2kz.png?1

everything done using xml , shapes, no pngs. idea causing this? i've tried messing around different paddings , thumb offset must missing something.

below xml seekbar, progress drawable , thumb drawable.

<seekbar         android:layout_width="320dp"         android:layout_height="wrap_content"         android:background="@drawable/volume_shading"         android:id="@+id/volume"         android:rotation="270"         android:progressdrawable="@drawable/blue_slider"         android:paddingtop="20dp"         android:paddingbottom="20dp"         android:paddingleft="20dp"         android:paddingright="20dp"         android:thumb="@drawable/thumb"         android:thumboffset="0dp"         android:layout_margintop="220dp"         android:layout_marginright="-100dp"         android:layout_alignparentright="true"/> 


<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android">      <item android:id="@android:id/background"           android:drawable="@drawable/grey_bar" />      <item android:id="@android:id/progress">     <scale android:scalewidth="100%"            android:drawable="@drawable/blue_bar" />     </item>  </layer-list> 


<?xml version="1.0" encoding="utf-8"?>  <shape xmlns:android="http://schemas.android.com/apk/res/android"            android:shape="rectangle">     <solid android:color="@android:color/white" />     <size  android:width="8dp"            android:height="40dp" />     <corners android:radius="4dp" /> </shape> 


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -