android seekbar 圆角,android - 最小或最大时,圆角android seekbar的ui奇怪行为 - 堆栈内存溢出...

我有一个搜索栏,其定义如下:

android:id="@+id/heat_seekbar"

android:layout_width="wrap_content"

android:layout_height="0dp"

android:layout_marginBottom="20dp"

android:splitTrack="false"

android:theme = "@style/MySeekBar"

android:thumb="@null"

android:progressDrawable="@drawable/heat_level_seekbar_progress_1"

android:max="100"/>

这是一个自定义的垂直搜索栏,但我认为这里没有问题(在水平搜索栏时也会发生同样的情况)

这是我的seekbar drawable:

android:gravity="center_vertical|fill_horizontal">

android:tint="#ffd600">

android:gravity="center_vertical|fill_horizontal">

android:drawable="@android:color/transparent" />

android:tint="#f50057">

android:bottomLeftRadius="30dp"/>

有了这段代码,当达到最小值或最大值时,进度“不会跟随”背景形状,现在我很伤心:

aHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS9LVGNkcy5wbmc=aHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS9qdno4cS5wbmc=

你知道如何预防吗?