1,在Button标签中直接添加以下属性
style=”?android:attr/borderlessButtonStyle”
2,有的Button的属性已经抽成style,此时直接在style时添加上parent:
<style name="btn_right_angle_bg_text" parent="@style/Widget.AppCompat.Button.Borderless">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">48dp</item>
<item name="android:background">@drawable/btn_right_angle_selector</item>
<item name="android:textSize">16sp</item>
<item name="android:textColor">@color/white</item>
</style>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)