目前遇到的问题是用三张图片来自定义seekbar的background、progress和thumb,但出来的结果和效果图大不一样,感觉这个问题不是很难,但却出不来满意的结果,哪位帮忙指点一下。
seekbar的配置文件: <SeekBar 
      android:id="@+id/RecordSeekBar"
      android:layout_width="415px"   
           android:layout_height="wrap_content"   
           android:maxHeight="24px"
           android:layout_marginTop="5px"
           android:layout_marginLeft="10px"
     android:paddingTop="2px"
     android:paddingBottom="10px"
     android:paddingLeft="5px"
     android:paddingRight="8px"
           android:thumb="@drawable/bs_voiceseekthumb"
           android:progressDrawable="@drawable/seekbar_style"
           android:max="100"
           android:progress="0" 
      
         >
        </SeekBar>
seekbar_style的配置文件:
<?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/bs_voiceseekbar" />
     
      <item android:id="@android:id/progress">
        <clip android:drawable="@drawable/bs_voiceseekblue" />
      </item> 
      
</layer-list>  
最终结果图:三张图片:
效果图:最终结果差太远,谁能帮忙看看~ 万分感谢

解决方案 »

  1.   

    我换了组图片还是不行,貌似不是图片的问题,我在设置progress时用的clip方式,这样可以防止progress的图片填充整个seekbar,但是background的图片现在的感觉就像是填充了seekbar,我试图也用clip方式来处理background,但这样background就消失了,只剩下蓝色的progress区域,这个问题我弄了好一阵了,总是不行,哪位大牛帮忙处理一下~