如何完美模仿 ActionButton 风格?

How can I perfectly mimic ActionButton style?

我正在使用支持工具栏,并向其中添加了一些按钮,我希望它们能够模仿 ActionButton 样式。我使用 style="@android:style/Widget.ActionButton" 非常接近,但字体大小或样式似乎略有偏差。添加 android:textStyle="bold" 让我更接近。

<Button
        style="@android:style/Widget.ActionButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="TEST"
        android:id="@+id/removeButton"
        android:layout_gravity="center" /> 

我也试过 style="@android:style/Widget.Holo.ActionButton" 和按钮中的其他一些似乎没有任何改变

我不完全确定这是正确的方法,但我一直在挖掘,将 android:textAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Menu" 添加到我的 Button 时这看起来是正确的,如下所示:

<Button
        style="@android:style/Widget.ActionButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="TEST"
        android:textAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Menu"
        android:id="@+id/removeButton"
        android:layout_gravity="center" />

希望它能对某人有所帮助,因为我在任何地方都找不到它。我显然不能接受我自己几天的回答。