gpt4 book ai didi

android - ShapeableImageView 的笔画被边框切割

转载 作者:行者123 更新时间:2023-12-04 12:09:39 34 4
gpt4 key购买 nike

我在这里有一个 ShapeableImageView,笔画为 5dp:

<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/profile_picture"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginTop="20dp"
android:scaleType="centerCrop"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/profile_toolbar"
app:shapeAppearanceOverlay="@style/circular"
app:strokeColor="@color/dark_blue"
app:strokeWidth="5dp" />
这是结果:
here is the result

最佳答案

我一直在尝试一些东西,最后,在 View 中添加填充解决了问题

关于android - ShapeableImageView 的笔画被边框切割,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66344584/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com