我有一个我在网站上看到的按钮,我想在xml中重新创建它.但是,我无法确定正确的尺寸.下面是我到目前为止的代码,但它与形状不完全匹配.希望有人可以帮忙!
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid
android:color="@color/white"></solid>
<corners
android:radius="600dp" />
<padding
android:left="10dp"
android:top="10dp"
android:right="10dp"
android:bottom="10dp" />
<stroke
android:width="3px" android:color="@color/salmon_main"/>
</shape>
Run Code Online (Sandbox Code Playgroud)