答案 0 :(得分:0)
在可绘制文件夹中添加XML文件并将其命名为a.xml:
public Specification<Plan> hasSort(String sortBy) {
return (root, query, criteriaBuilder) -> {
return //count of by Plan in Subscribers
}
}
添加您的按钮:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Gray shadow. -->
<item android:left="3dp" android:top="5dp">
<shape>
<solid android:color="@android:color/darker_gray" />
<corners android:radius="15dp" />
</shape>
</item>
<!-- White foreground. -->
<item android:bottom="5dp" android:right="3dp">
<shape>
<solid android:color="@android:color/white" />
<corners android:radius="15dp" />
</shape>
</item>
</layer-list>
输出:
答案 1 :(得分:0)
您只需要在xml中的Button标记下添加以下行。它将根据需要添加高程。
android:stateListAnimator="@null"