答案 0 :(得分:0)
您可以使用“画布”中的list(filter(lambda x: x[1]>=1000, fd_1.items()))
和drawLine()
函数来逐段绘制。
您可以检查如何使用此here。
答案 1 :(得分:0)
尝试一下
您可以通过Canvas来实现。
请仔细绘制所需的形状
您可以使用库android-shape-imageview
<com.github.siyamed.shapeimageview.mask.PorterShapeImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:siShape="@drawable/shape_bg"
android:src="@drawable/face"
app:siSquare="true"/>
使用库的输出看起来像
通过替换 ImageView
中的 siShape ,您可以获得不同的形状