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>