去除Android5.0以后按钮的高度与阴影

xiaoxiao2021-02-28  87

一行代码搞定

在按钮控件中添加 style=”?android:attr/borderlessButtonStyle”即可

<Button android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/white" style="?android:attr/borderlessButtonStyle" />
转载请注明原文地址: https://www.6miu.com/read-20778.html

最新回复(0)