【发布时间】:2016-06-30 11:31:40
【问题描述】:
【问题讨论】:
-
尝试使用路径类和 porterduff
【问题讨论】:
Shape Image View 可以帮助您满足您的要求
<com.github.siyamed.shapeimageview.{ClassName}
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="8dp"
android:src="@drawable/neo"
app:siBorderWidth="8dp"
app:siBorderColor="@color/darkgray"/>
在您的情况下,您可以使用com.github.siyamed.shapeimageview.HexagonImageView
还有很多其他可用的形状,请参阅该库以获取更多详细信息。
【讨论】:
ImageView 的android:rotation 属性,因为HexagonImageView 也扩展了同一个类。