2017-08-09 144 views
-2

我想要是把我的ImageView塑造这样形状图像

我使用这个库

https://github.com/siyamed/android-shape-imageview

enter image description here

我能加边框半径就可以了,但我的问题是 我不知道如何添加一个箭头,而在它添加边框半径

+0

推荐会查看[掩蔽在帧(作物)图像(https://stackoverflow.com/questions/12614542/maskingcrop-image-in-frame)。 – Tigger

回答

1

使用这种app:siArrowPosition="right": - >siArrowPosition哪里指向箭头,目前左|右

使用这种app:siRadius="6dp": - 在DP>圆角半径 和dpfor边境 app:siBorderWidth="6dp"边框宽度

<com.github.siyamed.shapeimageview.BubbleImageView 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:src="@drawable/neo" 
    app:siRadius="6dp" 
    app:siBorderWidth="6dp" 
    app:siArrowPosition="right" 
    app:siSquare="true"/> 
+0

怎么样就可以添加边框半径?我的意思是边界readius也在哪里呢?您添加箭头 – Beginner

+0

@Beginner检查更新ANS –