自定义xml角度按钮

时间:2014-01-05 18:37:30

标签: android xml button shape

我正在尝试创建两个按钮,例如

how I want the buttons

但不适用于photoshop。

我知道我可以创建这样的形状:     android:shape="...."

但我不知道如何创建像上面的图像。
任何帮助都会很棒

修改 我把它作为椭圆形,但不知道如何进一步改变形状:

XML:

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <gradient
        android:startColor="#302226"
        android:endColor="#6D7B8D"
        android:angle="45"/>
    <padding android:left="6dp"
        android:top="6dp"
        android:right="6dp"
        android:bottom="6dp" />
    <corners android:radius="30dp" />
</shape>

0 个答案:

没有答案