最佳答案
不确定具体的方法,但您始终可以将 topLeft
和 bottomLeft
或 Right 的半径
增加到最大值,得到半圆形尖端。
这就是我尝试做的事情
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<corners
android:topLeftRadius="100dp"
android:topRightRadius="31dp"
android:bottomLeftRadius="100dp"
android:bottomRightRadius="31dp"
/>
<gradient
android:angle="45"
android:centerX="35%"
android:centerColor="#7995A8"
android:startColor="#E8E8E8"
android:endColor="#000000"
android:type="linear"
/>
<size
android:width="172dp"
android:height="60dp"
/>
<stroke
android:width="3dp"
android:color="#878787"
/>
</shape>
关于android - 如何使按钮指向右或左?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38300396/