我正在给一个自定义形状Button。background用于for的xml文件Button如下:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:padding="10dp"
android:shape="rectangle" >
<solid android:color="#2E8B57" />
<corners
android:bottomLeftRadius="0dp"
android:bottomRightRadius="20dp"
android:topLeftRadius="0dp"
android:topRightRadius="20dp" />
</shape>
我在应用程序中使用片段。enter code here使用它的按钮drawable在平板电脑中显示预期的行为,但在手机中查看时,显示会发生变化。这些是平板电脑和手机的屏幕截图:

可以看出,在平板电脑视图中,Buttons从右上和右下四舍五入,但不是从左上和左下(这是我想要的)。但是在电话中,右上角和左下角是四舍五入的。我错过了什么吗?