Android Custom SeekBar miss conner

时间:2017-07-21 08:19:17

标签: android android-custom-view seekbar

我在myproject中有一个自定义的Seekbar,它在低分辨率手机中看起来不错,但在高分辨率手机中错过了一个conner。就是这样。

high resolution

low resolution

这是我的xml

    <SeekBar
        android:id="@+id/sb_lamp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:maxHeight="6dp"
        android:minHeight="6dp"
        android:max="255"
        android:thumb="@drawable/selector_ic_thumb"
        android:progressDrawable="@drawable/layer_list_seekbar"
        android:layout_centerVertical="true"
        android:layout_toLeftOf="@+id/ic_light_stronge"
        android:layout_toRightOf="@+id/ic_light_weak" />

layer_list_seekbar.xml

<?xml version="1.0" encoding="utf-8"?>

<!-- background -->
<item
    android:id="@android:id/background"
    android:drawable="@drawable/ic_background_back">
</item>

<!-- second progress -->
<item android:id="@android:id/secondaryProgress"
android:drawable="@drawable/ic_background_blue" >
</item>

<!-- progress -->
<item android:id="@android:id/progress"
    android:drawable="@drawable/ic_background_blue" >
</item>

我试图删除android:thumb="@drawable/selector_ic_thumb"但仍有问题,所以我认为我的layer_layout一定有问题, 你能给点建议吗?谢谢!

0 个答案:

没有答案