Ami*_*.io 4 android android-drawable
我花了几个小时试图使用drawables使用所有类型的旋转制作下面的箭头而没有任何成功,它根本就不像它:

是否可以使用shape/layer-list,而不使用png?
*编辑*
我能找到最接近所需箭头的是这个.我永远不会把线匹配而不是重叠:

也许这就是你要找的东西
arrow.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<rotate
android:fromDegrees="-45"
android:pivotX="100%"
android:pivotY="50%"
android:toDegrees="-45">
<shape
android:shape="line">
<stroke
android:width="3dp"
android:color="@android:color/holo_green_light"
/>
</shape>
</rotate>
</item>
<item>
<rotate
android:fromDegrees="45"
android:pivotX="100%"
android:pivotY="50%"
android:toDegrees="45">
<shape
android:shape="line">
<stroke
android:width="3dp"
android:color="@android:color/holo_green_light"
/>
</shape>
</rotate>
</item>
</layer-list>
Run Code Online (Sandbox Code Playgroud)
如果你的边缘不粘,你可以添加顶部和底部的元素,所以第一个添加<item android:bottom="5dp">第二<item android:top="4dp"> ....
| 归档时间: |
|
| 查看次数: |
1368 次 |
| 最近记录: |