我如何获得一个自定义按钮,该按钮在角落外有一个空白空间

问题描述 投票:0回答:1

我正在使用此工具https://angrytools.com/android/button/创建自定义的android按钮,这是它的可绘制xml

 <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
    <corners
        android:topLeftRadius="14dp"
        android:topRightRadius="14dp"
        android:bottomLeftRadius="0dp"
        android:bottomRightRadius="0dp"
        />
    <solid
        android:color="@color/turquoise"
        />
    <size
        android:width="0dp"
        android:height="60dp"
        />
</shape>

enter image description here但是,如图像中所示,我在布局上用橙色背景色制作了橙色自定义按钮,在其上方我用了绿松石制作了另一个自定义按钮。

它出现在橙色自定义按钮的角落,有一个效果,所以我该如何删除该效果,如这张图片所示>>

enter image description here

我正在使用此工具https://angrytools.com/android/button/创建自定义android按钮,这是其可绘制的xml [

android android-studio android-xml android-drawable android-designer
1个回答
2
投票

检查此样本

© www.soinside.com 2019 - 2024. All rights reserved.