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

来源:互联网 发布:移动的网络怎么这么差 编辑:程序博客网 时间:2024/05/29 16:01

一行代码搞定

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

  <Button        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:background="@color/white"        style="?android:attr/borderlessButtonStyle"        />
0 0