我正在尝试使用代码而不是背景图像来做到这一点
像这样定义xml文件
(这就是我圆润我的底部的方式)
将xml文件放入drawable文件夹中
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
>
<corners
android:radius="25dip" />
<stroke
android:width="1dp"
android:color="#000000" />
</shape>
并将xml文件放入background属性中
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/dateButton"
android:background="@drawable/shape"
></Button>
那么也许它与工具栏的工作原理相同?
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)